Socket
Book a DemoInstallSign in
Socket

fs-bluebird

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-bluebird

simple fs wrapper intended to cover edge cases that promisifyAll doesn't cover (e.g. fs.exists)

latest
Source
npmnpm
Version
0.1.4
Version published
Weekly downloads
10
42.86%
Maintainers
1
Weekly downloads
 
Created
Source

fs-bluebird

The intention of this library is to retain the same *Async prefix syntax while also covering the edge case of fs.exists (which doesn't follow the [error, result] callback parameter pattern).

If there are more edge cases to take care of I will be happy to add them to this library. Better yet, you could send me a pull request with the fix and associated mocha test and I'll merge.

###fs.existsAsync example:

var bFs = require('fs-bluebird');

var fileThatExists = './index.js';

bFs.existsAsync(fileThatExists)
  .then(function(exists) {
    if (exists) {
      // do something with file
    }
  });

Feel free to contact me with questions

Keywords

fs

FAQs

Package last updated on 14 Jun 2015

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.