promise-fs
Wraps FS methods using Promise
Last updated 7 years ago by octetstream .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 (7 years ago)

13 Versions

  • 2.1.1                                ...           7 years ago
  • 2.1.0                                ...           8 years ago
  • 2.0.1                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.3.0                                ...           9 years ago
  • 1.2.3                                ...           10 years ago
  • 1.2.2                                ...           10 years ago
  • 1.2.1                                ...           10 years ago
  • 1.2.0                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 0.2.2                                ...           11 years ago
  • 0.1.2                                ...           11 years ago
Maintainers (1)
Downloads
Total 111
Today 1
This Week 11
This Month 63
Last Day 1
Last Week 31
Last Month 35
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE