I'm facing the problem to import a min.js file into a nodejs project. I don't have an HTML file (I'm using express.js for backend activities) therefore I cannot import it in the normal way.
You can ask why I need a minified file inside the project. I forked another npm package and I made some edit to it. I don't want to publish it on npm since I need to test it first but I don't want to copy and paste the entire project inside others.
A min.js is perfect since it can places in many projects without effort.
Is it then possible? Do you know best practices regarding this problem?
EDIT: The minified file was useful in a DOM context but I don't need to have it. It would be really handy if I could use it also in Nodejs.
What I need it's to import an edited npm package in other projects such that I don't need to copy and paste it every time in each project folder.
Other ways using package.json would be great.
Thank you in advance!