Execute npm commands programmly with asynchronously or synchronously(npm install deasync
first to support sync).
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
MIT