Indexes

Accessing packages

Any npm package can be loaded through the /bundle/{bundleRoute} endpoint.The bundleRoute should end either with .js or .css and should contain a listof one or more packageRoutes. For example, /bundle/foo,bar,baz.js will return a JavaScript file that is aconcatenation of the latest versions of foo, bar, baz.

Loading specific versions

Sometimes it might be necessary to load a specific version of a package. In order to do so, it ispossible to specify the version of the package after a @ character. For example,/bundle/foo@4.2.13,bar@3,baz.js will return the 4.2.13's version of foo,the latest version of the 3rd major version of bar and the latest version ofbaz.