npm-command
v0.1.1
Published
Execute npm commands programmly with synchronously or asynchronously.
Downloads
2
Maintainers
Readme
npm-command
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