Files
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00
..
2026-11-19 18:32:17 -05:00
2026-11-19 18:32:17 -05:00
2026-11-19 18:32:17 -05:00
2026-11-19 18:32:17 -05:00
2026-11-19 18:32:17 -05:00
2026-11-19 18:32:17 -05:00
2026-11-19 18:32:17 -05:00

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