npm-save

1.0.2 • Public • Published

npm-save

Build Status

A module that allows module npm install --save or --save-dev

Installation

> npm install --save npm-save

Usage

There are two options: to --save or to --save-dev. Either way, to depend on this module, require it by

var npm = require("npm-save");

Save

To save the modules, add

npm.save([kontains, xcept]).then(function(){
    /** save successful **/
}).catch(function(err){
    /** an error has occurred **/
});

Save Dev

To save the development modules, add

npm.saveDev([kontains, xcept]).then(function(){
    /** saveDev successful **/
}).catch(function(err){
    /** an error has occurred **/
});

Versions

1.0.0

  • First publish

Package Sidebar

Install

npm i npm-save

Weekly Downloads

15

Version

1.0.2

License

ISC

Last publish

Collaborators

  • joeyism