Convert NPM project to browser-compatible JavaScript file?

Viewed 1666

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.

1 Answers

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.

Related