pfs

3.0.0 • Public • Published

pfs

node version travis-ci build status StandardJS

A tiny 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

Changelog

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    410
    • latest
  • 2.1.3
    0
    • two

Version History

Package Sidebar

Install

npm i pfs

Weekly Downloads

411

Version

3.0.0

License

MIT

Unpacked Size

3.81 kB

Total Files

4

Last publish

Collaborators

  • chrisdothtml