🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

fs-fs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-fs

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

fs

FAQs

Package last updated on 29 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts