# npm-presets

> Installs groups of npm dependencies

Latest version **0.1.7** (published 2016-05-16) · MIT license · 0 weekly downloads

## Install

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

Provides the commands `npm-preset-list`, `npm-preset-install`, `npm-preset-uninstall`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2016-05-16 |
| First published | 2016-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gustavo Sillero |
| Maintainers | sillero |
| Keywords | preset, bundle, npm, dependency, cli |

## Links

- npm: https://www.npmjs.com/package/npm-presets
- Repository: git@github.com-sillero:sillero/npm-presets
- npm.io page: https://npm.io/package/npm-presets

## Dependencies (1)

- [registry-resolve](https://npm.io/package/registry-resolve.md) ^0.1.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.7 (latest) — 2016-05-16
- 0.1.6 — 2016-05-15
- 0.1.5 — 2016-05-15
- 0.1.4 — 2016-05-15
- 0.1.3 — 2016-05-15
- 0.1.2 — 2016-05-15
- 0.1.1 — 2016-05-15
- 0.1.0 — 2016-05-15

## README

# npm-presets
Installs groups of npm dependencies.  
 
[![Travis](https://img.shields.io/travis/sillero/npm-presets/master.svg?maxAge=2592000)](https://travis-ci.org/sillero/npm-presets) [![Coveralls branch](https://img.shields.io/coveralls/sillero/npm-presets/master.svg?maxAge=2592000)](https://coveralls.io/github/sillero/npm-presets?branch=master) [![npm](https://img.shields.io/npm/v/npm-presets.svg?maxAge=2592000)](https://www.npmjs.com/package/npm-presets) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/sillero/npm-presets)
## Presets
Common presets can be found on the folder [presets/](https://github.com/sillero/npm-presets/tree/master/presets).  
You can create presets on your `package.json` file and the command line will try to resolve from there before searching for default presets.

### Example shallow preset (react-redux-webpack)
```javascript
[
  'react',
  'react-dom',
  'react-hot-loader',
  'react-redux',
  'react-router',
  'react-router-redux',
  'redux',
  'redux-devtools',
  'redux-devtools-dock-monitor',
  'redux-devtools-log-monitor',
  'redux-saga',
  'webpack',
  'webpack-dev-server'
]
```
### Example nested preset (babel-eslint-airbnb)
```javascript
[
  'preset:babel',
  'preset:eslint-airbnb',
  'babel-eslint'
]
```

## Installation and usage
`npm install -g npm-presets`

This will give you three commands to use

### npm-preset-install [flags] &lt;presets&gt;
It takes `npm install` default flags (optional) and space seprated list of presets (optional).  
This command will resolve all the presets and run an `npm install` with the resolved modules and the provided flags.
```
npm-preset-install react-redux-webpack

npm-preset-install --save react-redux-webpack

npm-preset-install --save-dev react-redux-webpack
``` 
### npm-preset-uninstall [flags] &lt;presets&gt;
It will uninstall all modules listed on the presets 

### npm-preset-list [-R|--resolve] &lt;presets&gt;
It will list all modules to be installed on a preset or a collection of presets.  
Use `-R` or `--resolve` to print the version to be resolved by npm after the install.

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