asfs

v2.2.0
Asyncronous file system utility.
fs async

asfs

Build Status npm Version JS Standard

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.

Links

Metadata

  • MIT
  • >=7.6
  • Taka Okunishi
  • released 1/31/2019

Downloads

Maintainers