# npm-command

> Execute npm commands programmly with synchronously or asynchronously.

Latest version **0.1.1** (published 2016-12-09) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2016-12-09 |
| First published | 2015-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | riceball |
| Keywords | npm, command, execute, install, function, synchronous, asynchronous |

## Links

- npm: https://www.npmjs.com/package/npm-command
- Repository: https://github.com/snowyu/npm-command.js
- Issues: https://github.com/snowyu/npm-command.js/issues
- npm.io page: https://npm.io/package/npm-command

## Dependencies (2)

- [npm](https://npm.io/package/npm.md) ^3.8.3
- [util-ex](https://npm.io/package/util-ex.md) ^0.3.14

## 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.1 (latest) — 2016-12-09
- 0.1.0 — 2016-03-26
- 0.0.2 — 2015-09-04
- 0.0.1 — 2015-09-04

## README

## npm-command [![npm](https://img.shields.io/npm/v/npm-command.svg)](https://npmjs.org/package/npm-command)

[![Build Status](https://img.shields.io/travis/snowyu/npm-command.js/master.svg)](http://travis-ci.org/snowyu/npm-command.js)
[![Code Climate](https://codeclimate.com/github/snowyu/npm-command.js/badges/gpa.svg)](https://codeclimate.com/github/snowyu/npm-command.js)
[![Test Coverage](https://codeclimate.com/github/snowyu/npm-command.js/badges/coverage.svg)](https://codeclimate.com/github/snowyu/npm-command.js/coverage)
[![downloads](https://img.shields.io/npm/dm/npm-command.svg)](https://npmjs.org/package/npm-command)
[![license](https://img.shields.io/npm/l/npm-command.svg)](https://npmjs.org/package/npm-command)


Execute npm commands programmly with asynchronously or synchronously(`npm install deasync` first to support sync).

## Usage

```coffee
command  = require 'npm-command'
install  = require 'npm-command/lib/install'
config   = require 'npm-command/lib/config'

#install 'aNpmPackageName', {save:true}, (err, data)->
config.set save:true, (err)->
  unless err
    command 'install', [['aPackageName']], (err,data)->

# MUST install deasync pacakge first.
install.sync 'aNpmPackageName', {save:true} if install.sync
```

## API


## TODO


## License

MIT

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