1.0.2 • Published 4 years ago

install-auto v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

install-auto

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

npm install install-auto

Usage

First install install-auto

npm install -g install-auto

Then make a script that uses some dependencies

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

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

## use default
install-auto my-script.js

## use yarn
install-auto my-script.js -r https://registry.npm.taobao.org -t yarn 

config

paramaction
-rset registry(npm/cnpm)
-tset tool(npm/yarn/cnpm)

License

MIT