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

13 Versions

  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.3.0                                ...           7 years ago
  • 1.2.3                                ...           8 years ago
  • 1.2.2                                ...           8 years ago
  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 0.2.2                                ...           9 years ago
  • 0.1.2                                ...           9 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |