spawn-commands
Launches a new process with the given command, with command line arguments in `args`. Should work with any platform - even Windows.
Last updated 11 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install spawn-commands 
SYNC missed versions from official npm registry.

spawn-commands NPM version

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

$ npm i spawn-commands --save

Running tests

Install dev dependencies:

$ npm i -d && npm test

Usage

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

Examples

Install npm modules:

async

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

sync

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

Other useful CLI projects

  • lint-deps: CLI tool that tells you when dependencies are missing from package.json and offers you a… more
  • minimist-events: Add events to minimist, ~30 sloc.
  • 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

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on August 19, 2015.

Current Tags

  • 0.3.1                                ...           latest (11 years ago)

5 Versions

  • 0.3.1                                ...           11 years ago
  • 0.3.0                                ...           11 years ago
  • 0.2.1                                ...           11 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 5
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |