1.0.1 • Published 8 years ago

@jokeyrhyme/pify-fs v1.0.1

Weekly downloads
6
License
BSD-2-Clause
Repository
github
Last release
8 years ago

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)))