# spawn-commands [![NPM version](https://badge.fury.io/js/spawn-commands.svg)](http://badge.fury.io/js/spawn-commands)

> Launches a new process with the given command, with command line arguments in `args`. Should work with any platform - even Windows.

## Install

Install with [npm](https://www.npmjs.com/)

```sh
$ npm i spawn-commands --save
```

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Usage

```js
var cmd = require('spawn-commands');
```

### Examples

Install npm modules:

**async**

```js
commands({cmd: 'npm', args: ['i', 'isobject', '--save']}, function(err) {
  // runs the command:
  //=> 'npm i isobject --save'
});
```

**sync**

```js
cmd.sync({cmd: 'npm', args: ['i', 'isobject', '--save']});
// runs the command:
//=> 'npm i isobject --save'
```

## Other useful CLI projects

* [lint-deps](https://github.com/jonschlinkert/lint-deps): CLI tool that tells you when dependencies are missing from package.json and offers you a… [more](https://github.com/jonschlinkert/lint-deps)
* [minimist-events](https://github.com/jonschlinkert/minimist-events): Add events to minimist, ~30 sloc.
* [minimist-plugins](https://github.com/jonschlinkert/minimist-plugins): Simple wrapper to make minimist pluggable. ~20 sloc.

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/spawn-commands/issues/new)

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2015 Jon Schlinkert
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 19, 2015._