Skip to content

Turns the npm api that uses callbacks into promises api

Notifications You must be signed in to change notification settings

BinaryCraft/npm-as-promised

Repository files navigation

About

Allows you to interact with the npm commands using es6 promises instead of callbacks

Install

npm install npm-as-promised --save-dev

Usage

npm.load and all npm.commands are now wrapped in a promise api. See below:

npm.load(config).then(function(){
    //do cool stuff
}).catch(function(){
    //Something went wrong, not cool
)

About

Turns the npm api that uses callbacks into promises api

Resources

Stars

Watchers

Forks

Packages

No packages published