tanyanfei 2effbd93de init před 4 roky
..
test 2effbd93de init před 4 roky
.npmignore 2effbd93de init před 4 roky
History.md 2effbd93de init před 4 roky
Makefile 2effbd93de init před 4 roky
Readme.md 2effbd93de init před 4 roky
index.js 2effbd93de init před 4 roky
package.json 2effbd93de init před 4 roky

Readme.md

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