npm.devtool.tech
👏 You can access thunkify package with using thunkify variable in browser devtools!
Turn callbacks, arrays, generators, generator functions, and promises into a thunk

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

thunkify

Turn a regular node function into one which returns a thunk, useful for generator-based flow control such as co.

Installation

$ npm install thunkify

Example

var thunkify = require('thunkify');
var fs = require('fs');

var read = thunkify(fs.readFile);

read('package.json', 'utf8')(function(err, str){
  
});

License

MIT

🔎Explore Package🔎CDN Script

Score

Popularity42/100
Quality76/100
Maintenance17/100

DevDependencies