0.4.1 • Published 10 years ago

npmwrap v0.4.1

Weekly downloads
6
License
MIT
Repository
github
Last release
10 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

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago