Package Exports
- asfs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (asfs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
asfs
Aynsc file system utility.
Installation
$ npm install asfs --saveUsage
'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.