Socket
Book a DemoInstallSign in
Socket

augnerr

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

augnerr

Augment Node.js errors: Make some errors more helpful.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

augnerr

Augment Node.js errors: Make some errors more helpful.

API

This module exports one function that has some methods:

augmentError(err)

Augments err, in-place if possible. Returns the augmented error.

augmentError.re(err)

("re-throw")

Throws the augmented error.

Augmentations

File system errors

  • If .path is relative, add the current working directory as .cwd.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

FAQs

Package last updated on 26 Jul 2018

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