Skip to content
/ fs-fs Public

A NodeJS fs wrapper for Promises or/and async/await

Notifications You must be signed in to change notification settings

VitaliyR/fs-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A NodeJS fs wrapper for Promises or/and async/await

Resources

Stars

Watchers

Forks

Packages

No packages published