Skip to content

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

License

Notifications You must be signed in to change notification settings

joergpatz/promisify-callback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages