Noiseless Praying Mantis
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

promisify-callback

1.0.0 • Public • Published

promisify-callback

A small ES6 module that turns any async function with callback into a promise

Install

$ npm i promisify-callback

Usage Example

import promisify from 'promisify-callback';
 
promisify(fs.readFile, '/path/to/file').then(/*code here*/);

Test

$ npm test

install

npm i promisify-callback

Downloadsweekly downloads

0

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability