asfs
v1.2.3 fs async
asfs
Aynsc file system utility.
Installation
$ npm install asfs --save
Usage
'use strict'
const asfs = require('asfs')
const co = require('co')
co(function * () {
let filename = 'foo.txt'
let exists = yield asfs.existsAsync(filename)
if (exists) {
let content = yield asfs.readFileAsync(filename)
console.log(content)
}
})
License
This software is released under the MIT License.