Brak opisu

FFIB: 11e3a9652a first 7 lat temu
..
test 11e3a9652a first 7 lat temu
.npmignore 11e3a9652a first 7 lat temu
History.md 11e3a9652a first 7 lat temu
Makefile 11e3a9652a first 7 lat temu
Readme.md 11e3a9652a first 7 lat temu
index.js 11e3a9652a first 7 lat temu
package.json 11e3a9652a first 7 lat temu

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