1.2.2 • Published 10 years ago

promise-denodeify v1.2.2

Weekly downloads
5
License
-
Repository
github
Last release
10 years ago

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
1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.1.0

10 years ago