Détail du package

co-fs

visionmedia7.6kMIT1.2.0

fs wrappers for 'co'

async, flow, generator, coro

readme

co-fs

Node core fs wrapped functions that return thunks for co.

Installation

$ npm install co-fs

Example

Use all the regular async fs functions without callback hell:

var json = yield fs.readFile('package.json', 'utf8')
var files = yield fs.readdir('/tmp')

License

MIT

changelog

1.2.0 / 2014-03-17

  • wrap .createReadStream

1.1.1 / 2013-11-11

  • ignore undefined methods. Closes #3

1.1.0 / 2013-10-14

  • refactor with thunkify

1.0.1 / 2013-09-02

  • fix receiver