co-fs

v1.2.0
fs wrappers for 'co'
async flow generator coro coroutine

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

npm i co-fs

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 3/17/2014

Downloads

Maintainers