node-promised
is a small library to convert APIs with Node-style callbacks into promises. It is similar to "promisify" libraries except that it uses the built-in Promise
implementation included with ES6.
Usage
// Define the Promise constructor if you are not using ES6; var fs = ;var promised = ; var promiseReadFile = ;;
Tests
Run npm test
to run the unit tests, which are written with jest.