by toastercat · 2y ago · 0 comments
Usually this will give you a .min.js file ready for you to script include on your site, for example, unpkg.com/mithril
Sometimes library authors don't default the export to a browser ready minified version or ESM module, in which case, you can snoop around the built package at unpkg.com/browse/mithril/.
Most READMEs worth a damn should tell you how to use their libraries without npm if possible. Unfortunately, a lot of library authors suck.
The nerve of them not catering to the small percentage of use cases for a project they often do in their free time and often for free. The entitlement is real.
The closest service is https://esm.sh, but you can’t download from it.
https://esm.sh/ is definitely a good option too if you're OK with modules.
The reality is that only frameworks and very popular browser-specific packages do that.