Skip to content
/ npm-auto Public
forked from mafintosh/npm-auto

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

License

Notifications You must be signed in to change notification settings

fd532/npm-auto

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

config

param action
-r set registry(npm/cnpm)
-t set tool(npm/yarn/cnpm)

No more manual npm installs for gists!

License

MIT

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%