jsDelivr CDN link for an npm package: copy the script tag

Enter an npm package name to get its versions and a version-pinned jsDelivr script or link tag, ready to paste into an HTML page.

Loading an npm library from jsDelivr with a pinned version

Every package published on npm is served by jsDelivr at cdn.jsdelivr.net/npm/name@version/file. The tool reads the version list and the main file declared by the package, then builds the script tag (and a link tag for a stylesheet) with an exact version that will not change.

What the tool shows

For the name you type, the tool queries the jsDelivr data API: the list of versions published on npm, the distribution tags (latest, next, latest-4…) and, for the chosen version, the JavaScript and CSS files that jsDelivr serves by default. It builds a tag to copy, shown as plain text. When the package declares no browser file, jsDelivr guesses one and the tool says so.

Example

As of 14/10/2026, the latest tag of bootstrap points to 5.3.8. The declared files are /dist/js/bootstrap.min.js and /dist/css/bootstrap.min.css, hence cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.min.js in the script tag.

Limits

  • The integrity hash (integrity attribute, SRI) is not computed. Add it from the package page on jsDelivr if your security policy requires it.
  • A package built for bundlers (ES imports with no browser build) may not work as is in a script tag.
  • The version list is refreshed at most hourly; a version's file at most daily, since a published version never changes.

Use this tool to embed a JavaScript library from a CDN. For a Python package, use the PyPI tool; for known vulnerabilities of an npm version, the OSV tool.

Sources and dates: jsDelivr data API documentation, data read live (checked on 14/10/2026).

Frequently Asked Questions

How do I include an npm package in an HTML page without a bundler?

Use the address cdn.jsdelivr.net/npm/name@version/file in a script tag. jsDelivr automatically serves every package published on npm, with no sign-up. The package must still ship a browser file (often in dist/ or umd/).

Should I put the version in the jsDelivr URL?

Yes in production: an exact version such as bootstrap@5.3.8 never changes. Without a version, the URL follows the latest release and a major update can break your site. A range such as @5 follows minor updates.

What is the integrity attribute (SRI)?

It is the cryptographic hash of the file (usually sha384): the browser rejects the file if its content does not match. It only applies to an exact version. This tool does not compute it; the package page on jsDelivr provides it.

Is this tool really free?

Yes, all tools on Kristools are 100% free and accessible without registration.

Is my data protected?

Yes. All processing is performed directly and securely inside your browser. No personal data is sent to our servers.