Skip to content

wxygeek/co-fs-extra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM

co-fs-extra

'fs-extra' wrapped functions that return thunks for co.

Installation

$ npm install co-fs-extra --save

API

see more -> fs-extra

Example

Use all the regular async fs functions without callback hell:

var json = yield fs.readFile('package.json', 'utf8')
var file = yield fs.ensureFile('hello.txt')

License

MIT