🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

install-auto

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

install-auto

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

1.0.2
latest
Source
npm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 07 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts