/ at the end of a URL to view a listing of all the files in a package.
| || ||The name of the field in package.json to use as the main entry point when there is no file path in the URL.|
| || ||Return a recursive list of metadata about all the files in a directory as JSON (e.g. |
For npm package authors, npm cdn relieves the burden of publishing your code to a CDN in addition to the npm registry. All you need to do is include your UMD build in your npm package (not your repo, that's different!).
You can do this easily using the following setup:
dist) directory to your
umddirectory to your files array in
umddirectory when you publish
That's it! Now when you
npm publish you'll have a version available on npm cdn as well.