npm-command

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i npm-command

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • riceball