0.0.1 • Published 8 years ago

mqn-nfpromiser v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

mqn-nfpromiser

Build Status

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.