# install-auto

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

Latest version **1.0.2** (published 2020-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install install-auto
pnpm add install-auto
yarn add install-auto
bun add install-auto
```

Provides the command `install-auto`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-10-07 |
| First published | 2020-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rabbitzzc |
| Maintainers | simida |

## Links

- npm: https://www.npmjs.com/package/install-auto
- Repository: https://github.com/fd532/install-auto
- Issues: https://github.com/fd532/install-auto/issues
- npm.io page: https://npm.io/package/install-auto

## Dependencies (2)

- [minimist](https://npm.io/package/minimist.md) ^1.2.5
- [detective](https://npm.io/package/detective.md) ^5.2.0

## Recent versions

- 1.0.2 (latest) — 2020-10-07
- 1.0.1 — 2020-10-07
- 1.0.0 — 2020-10-07

## README

# 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

``` sh
npm install -g install-auto
```

Then make a script that uses some dependencies

``` js
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.

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

## use yarn
install-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) |

## License

MIT

---
_Source: https://npm.io/package/install-auto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
