3.0.0 • Published 6 years ago

pfs v3.0.0

Weekly downloads
42
License
MIT
Repository
github
Last release
6 years ago

pfs

node version travis-ci build status StandardJS

A dependency-free, promise wrapper around fs

Install

$ yarn add pfs

# or npm
$ npm install --save pfs

Use

Exactly how you would use fs. This is a drop-in replacement that converts any callback-based functions to promises

const fs = require('pfs')

// now uses promise
fs.readFile('my-file.txt', 'utf-8')
  .then(...)
  .catch(...)

// still works the same
fs.readFileSync('my-file.txt', 'utf-8')

// properties are also unchanged
fs.constants.R_OK

License

MIT

2.1.3

6 years ago

3.0.0

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.10.20

11 years ago