{"inline_business":{"jsdelivr-cdn-package":{"name_label":"npm package name","name_placeholder":"e.g. bootstrap, chart.js, @floating-ui/dom","search":"Look up","invalid_name":"Invalid npm name: lowercase letters, digits and - . _ ~, with an optional scope as @scope/name.","version_label":"Version","version_count":"{{n}} published versions, the {{shown}} most recent in the list.","tags":"Distribution tags","snippets_title":"Code to paste into your page","script_tag":"Script tag (JavaScript)","link_tag":"Link tag (stylesheet)","copy_tag":"Copy tag","copy_url":"Copy URL","guessed":"File guessed by jsDelivr (the package declares no browser file): check that it works before using it.","no_entrypoint":"jsDelivr offers no main file for this version.","no_sri":"The integrity hash (integrity attribute, SRI) is not computed by this tool. For production, add it from the package page on jsDelivr.","pin_note":"The tag pins an exact version, so the file will not change. A URL without a version follows the latest release and can break your site on a major update.","source_name":"jsDelivr"}},"docs_business":{"tools":{"jsdelivr-cdn-package":{"content":{"title":"Loading an npm library from jsDelivr with a pinned version","intro":"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.","details":"
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.
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.
integrity attribute, SRI) is not computed. Add it from the package page on jsDelivr if your security policy requires it.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).
"},"faqs":[{"question":"How do I include an npm package in an HTML page without a bundler?","answer":"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/)."},{"question":"Should I put the version in the jsDelivr URL?","answer":"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."},{"question":"What is the integrity attribute (SRI)?","answer":"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."}]}}}}