This package has been deprecated

Author message:

THIS PROJECT IS NO LONGER MAINTAINED by clebert

promise-denodeify

1.2.2 • Public • Published

promise-denodeify

A method for converting a Node.js-style asynchronous function into a function that returns a promise.

license npm downloads

build coverage code climate dependencies devDependencies

Getting Started

Installation

npm install promise-denodeify --save

Integration

var denodeify = require('promise-denodeify');

API

denodeify(nodeFunction, Promise, [noArgs])

var readFile = denodeify(fs.readFile, Promise, false);
 
readFile('filename').then(function (data) {
    // ...
}).catch(handleError);

Running Tests

To run the test suite first install the development dependencies:

npm install

then run the tests:

npm test

Readme

Keywords

Package Sidebar

Install

npm i promise-denodeify

Weekly Downloads

0

Version

1.2.2

License

none

Last publish

Collaborators

  • clebert