Website/node_modules/co-fs-extra/README.md

28 lines
621 B
Markdown
Raw Normal View History

2015-12-02 18:21:44 -05:00
[![NPM](https://nodei.co/npm/co-fs-extra.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/co-fs-extra/)
# co-fs-extra
'fs-extra' and 'fs' wrapped functions that return thunks for [co](https://github.com/visionmedia/co).
## Installation
```
$ npm install co-fs-extra
```
## API
see more -> [fs-extra](https://www.npmjs.org/package/fs-extra) and [co-fs](https://www.npmjs.org/package/co-fs)
## Example
Use all the regular async fs functions without callback hell:
```js
var json = yield fs.readFile('package.json', 'utf8')
var file = yield fs.ensureFile('htllo.txt')
```
## License
MIT