install-lib installs an npm package and all its dependencies as a single module.
Have you ever opened your node_modules folder? It's crazy - why is there a package called has? Who made it? Who cares? If that's you, this package might help.
It's easy, and works just like npm.
To add a package just use:
npx install-lib [npm package]
And to install all listed packages use:
You can then use the package as a regular node module, install types, do all the stuff that it makes sense to do.
There's no need to install it, just run it with npx. Modules are exported to the node_modules directory, and appended to the package.json in the folder it's ran in.
This package makes heavy use of npx and the awesome @zeit/ncc.
This thing is new, and no issues have been discovered, which means it's perfect. If you find something wrong, let me know or request a PR yourself.