npm.io
1.0.2 • Published 2 years agoCLI

npm-auto

Licence
MIT
Version
1.0.2
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
46

npm-auto

Auto installs npm dependencies from the script you want to run and runs the script

npm install npm-auto

Usage

First install npm-auto

npm install -g npm-auto

Then make a script that uses some dependencies

const hypercore = require('hypercore')
console.log('hypercore is', hypercore)

Then simply run the script with npm-auto. It will npm install any deps used by the script if they are not resolvable already.

npm-auto my-script.js

No more manual npm installs for gists!

License

MIT