fs-fs

1.0.0 • Public • Published

fs-fs

Yet another NodeJS fs wrapper for Promises or/and async/await. Based on Proxy on top of original fs lib. Also, each method has it's linked original version.

Usage

const fs = require('fs-fs');
 
try {
const data = await fs.readFile('path');  
} catch (e) {
}
 
const isExists = await fs.exists('path');
 
fs
  .readFile('path')
  .then(Function.prototype)
  .catch(Function.prototype);
 
fs.native.readFile('path', Function.prototype /* callback */);

License

MIT © 2017 Vitaliy Ribachenko vit@ribachenko.com

Package Sidebar

Install

npm i fs-fs

Weekly Downloads

69

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vitaliyr