This package has been deprecated

Author message:

Use NodeJS util instead https://nodejs.org/api/util.html#util_util_promisify_original

mqn-nfpromiser

0.0.1 • Public • Published

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.

Package Sidebar

Install

npm i mqn-nfpromiser

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • markusneuy