JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2882
  • Score
    100M100P100Q117075F
  • License MIT

Aynsc file system utility.

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

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.