0.0.1 • Published 8 years ago
mqn-nfpromiser v0.0.1
mqn-nfpromiser
The nfPromiser module has just a single function that takes a node-styled function, executes it and returns a promise.
Installation
npm install mqn-nfpromiser
Usage
import nfPromiser from 'mqn-nfpromiser';
import fs from 'fs';
nfPromiser(fs.readFile, 'some/path', 'utf8').then((result) => {
// do something
}).catch((err) => {
// handle an error
});
Tests
`npm test`
Docs
`npm docs`
This will build docs at the docs folder.
0.0.1
8 years ago