@jokeyrhyme/pify-fs

the Node.js fs module, safer via graceful-fs, and more convenient via pify

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
110Apr 28, 2020Jun 13, 2016Minified + gzip package size for @jokeyrhyme/pify-fs in KB

Readme

pify-fs npm AppVeyor Status Travis CI Status

the Node.js fs module, safer via graceful-fs, and more convenient via pify

What is this?

I frequently use the awesome graceful-fs wrapper in combination with the convenient pify wrapper.

I got tired of doing this over and over again, so I made this module.

Usage

const fs = require('@jokeyrhyme/pify-fs')

fs.readdir(process.cwd())
  .then((files) => assert(Array.isArray(files)))

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.