# npm-install-package

> Install an npm package

Latest version **2.1.0** (published 2016-12-22) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.1.0 |
| Published | 2016-12-22 |
| First published | 2015-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 31 |
| Maintainers | rolfkoenders, yoshuawuyts |
| Keywords | npm, install, package, local, exec |

## Links

- npm: https://www.npmjs.com/package/npm-install-package
- Repository: https://github.com/yoshuawuyts/npm-install-package
- Homepage: https://github.com/yoshuawuyts/npm-install-package#readme
- Issues: https://github.com/yoshuawuyts/npm-install-package/issues
- npm.io page: https://npm.io/package/npm-install-package

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2016-12-22
- 2.0.0 — 2016-12-22
- 1.1.0 — 2016-10-05
- 1.0.2 — 2015-10-10
- 1.0.1 — 2015-10-05
- 1.0.0 — 2015-10-05

## README

# npm-install-package
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![Downloads][downloads-image]][downloads-url]
[![js-standard-style][standard-image]][standard-url]

Install an npm package.

## Installation
```sh
$ npm install npm-install-package
```

## Usage
```js
var install = require('npm-install-package')

install('minimist', function (err) {
  if (err) throw err
})
```

With multiple installs, offline-first fetching and saving to dev dependencies:
```js
var install = require('npm-install-package')

var devDeps = [ 'map-limit', 'minimist', 'cliclopts' ]
var opts = { saveDev: true, cache: true }

install(devDeps, opts, function (err) {
  if (err) throw err
})
```

## API
### install(dependencies, options, cb)
Install an array of dependencies. Opts can contain the following values:
- __save__: save a value to `dependencies`. Defaults to `false`
- __saveDev__: save a value to `devDependencies`. Defaults to `false`
- __cache__: attempt to get packages from the local cache first. Defaults to `false`
- __silent__: install packages silently without writing to stdout. Defaults to `false`

## License
[MIT](https://tldrlegal.com/license/mit-license)

[npm-image]: https://img.shields.io/npm/v/npm-install-package.svg?style=flat-square
[npm-url]: https://npmjs.org/package/npm-install-package
[travis-image]: https://img.shields.io/travis/yoshuawuyts/npm-install-package/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/yoshuawuyts/npm-install-package
[codecov-image]: https://img.shields.io/codecov/c/github/yoshuawuyts/npm-install-package/master.svg?style=flat-square
[codecov-url]: https://codecov.io/github/yoshuawuyts/npm-install-package
[downloads-image]: http://img.shields.io/npm/dm/npm-install-package.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/npm-install-package
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: https://github.com/feross/standard

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