Skip to content

Execute npm commands programmly with synchronously or asynchronously.

License

Notifications You must be signed in to change notification settings

snowyu/npm-command.js

Repository files navigation

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

About

Execute npm commands programmly with synchronously or asynchronously.

Resources

License

Stars

Watchers

Forks

Packages

No packages published