promise-fs
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/promise-fs package

2.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i promise-fs

Weekly Downloads

66,807

Version

2.1.1

License

MIT

Unpacked Size

2.87 kB

Total Files

4

Last publish

Collaborators

  • octetstream