< Back
Just add package names
Enter the npm names of the packages you want to use in your module scripts, separated by spaces. You can specify the version you want by appending @x.y.z to the end where x.y.z stands for the version number. For example: dompurify@3.1.4.
npm
@x.y.z
x.y.z
dompurify@3.1.4
Copy and paste the markup into the head of your page. Or, if you want to process the map or preloads beforehand, use the json option and add the resulting JSON file as a data source to your static site generator.
head
json
JSON
Instant Import Map!
If you find this site useful, you might want to either subscribe to my blog or to my weekly newsletter. If you join the newsletter you’ll get a free PDF of three bonus essays from my book Out of the Software Crisis.
Unsubscribe at any time.