1.0.4 • Published 4 years ago

atrun v1.0.4

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

atrun

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

atrun ---> auto run

npm install atrun

Usage

First install atrun

npm install -g atrun

Then make a script that uses some dependencies

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

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

## use default
atrun my-script.js

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

config

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

License

MIT