# npm-auto

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

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

## Install

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

Provides the command `npm-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 | 2024-07-10 |
| First published | 2020-10-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 46 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.2 (latest) — 2024-07-10
- 1.0.1 — 2020-12-15
- 1.0.0 — 2020-10-06

## README

# 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

``` sh
npm install -g npm-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 `npm-auto`.
It will `npm install` any deps used by the script if they are not resolvable already.

``` sh
npm-auto my-script.js
```

No more manual npm installs for gists!

## License

MIT

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