asfs
v2.3.0
Published
Aynsc file system utility.
Downloads
4,993
Readme
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.