Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

better-fs-errors

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-fs-errors

Better-looking Node fs error outputs

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

better-fs-errors

better-fs-errors is a node module that improves the way fs (file system) errors look. It uses the errno module to provide more helpful error messages based on the error code provided by node. This has not been fully tested with every possible error, so please report any issues you run into here.

Before:

Error: ENOENT, open 'path\to\problem\file'
    at Error (native)

After:

------------------------------------------------
RAW ERROR:
Error: ENOENT, open 'path\to\problem\file'

ERROR DESCRIPTION:
no such file or directory
------------------------------------------------

Installation & Usage

Installing via npm

npm install better-fs-errors

Including the module

var bfe = require('better-fs-errors');

Using

throw bfe(err);

NOTE: If it can't find your error code in errno, it will return the original error.

Dependencies

  • errno

Keywords

FAQs

Package last updated on 07 Sep 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc