0.4.1 • Published 8 years ago

npmwrap v0.4.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

npmwrap

API interface for common npm commands. Can be executed synchronously, asynchronously, or via promises.

Installation

$ npm install npmwrap

Examples

Install packages in one of three ways.

var npm = require("npmwrap");

// Sync
npm.installSync("handlebars", { saveDev : true });

// Async
npm.install("handlebars", { saveDev : true }, function(err, results) {
  console.log("Output from npm:", results);
});

// Promise
var promise = npm.install("handlebars");

API

Commands

  • install, installSync
  • link, linkSync
  • uninstall, uninstallSync
  • unlink, unlinkSync
  • update, updateSync

Flags

  • save
  • saveDev
  • global
  • cwd (current working directory)

License

MIT

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago