pifs

v2.0.0
Promisified graceful-fs
fs graceful-fs promise promisify

pifs npm

Promisified graceful-fs.

  • aligned with Node.js v10
  • native util.promisify()
  • no sync methods
  • no deprecated methods like exists
  • no undocumented exports like FileReadStream or F_OK
  • no promises :)
  • non-callback methods like createReadStream or watch are re-exported as is
  • constants is re-exported as is

Install

$ yarn add pifs

Usage

import { readFile } from 'pifs'

readFile('/file/path', 'utf8')
  .then(console.log)
  .catch(console.error)
npm i pifs

Metadata

  • MIT
  • >=12.13.0
  • Unknown
  • released 8/14/2020

Downloads