is it possible to convert a fairly small NPM package to a javascript file that I can reference in HTML with a <script> tag?
The NPM package that I am trying to do this with is not complex at all and is basically just an API wrapper that I'd like to use, but I don't want to use Node.
use Browserify to convert NPM to a single js file and then refer it in your HTML file
NPM is just a build tool, it helps you organise dependencies and much other.
You can manually make the particular *.js files you want from node_modules available for your html file and use them from there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With