JSPM

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

Implements module FS using Promises

Package Exports

  • promise-fs

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 (promise-fs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Promise FS

Implements module FS using Promises

Installation

You can install this module using NPM:

$ npm i --save promise-fs

Usage

  fs = require 'promise-fs'

  fs.readFile 'path/to/file'
    .then (content) -> console.log content # Doing something with content
    .catch (err) -> console.log err # Handle error

Wrapped methods:

access, readFile, writeFile, close, open, read, write, rename, rmdir, mkdir, readdir, stat, lstat, fstat, appendFile, realpath, link, unlink, readlink, chmod, fchmod, chown, fchown, lchown, fsync, utimes, futimes, ftruncate

License

MIT