0.1.1 • Published 7 years ago

npm-command v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

npm-command npm

Build Status Code Climate Test Coverage downloads license

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

Usage

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