Skip to content

a-labo/asfs

Repository files navigation

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