co-fs-extra

fs-extra for 'co'

Usage no npm install needed!

<script type="module">
  import coFsExtra from 'https://cdn.skypack.dev/co-fs-extra';
</script>

README

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