promise-fs
Wraps FS methods using Promise
Last updated a year ago by octetstream .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install promise-fs 
SYNC missed versions from official npm registry.

Promise FS

Wraps FS methods using Promise

Installation

You can install this module using Yarn:

yarn add promise-fs
npm install promise-fs

Usage

  import fs from "promise-fs"

  fs.readFile("path/to/file")
    .then(content => console.log(String(content))) // Do something with the 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

Current Tags

  • 2.1.1                                ...           latest (a year ago)

13 Versions

  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.3                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.2.2                                ...           5 years ago
  • 0.1.2                                ...           5 years ago

Copyright 2014 - 2017 © taobao.org |