New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

guaranteed-error

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

guaranteed-error

Fixes up error objects, and converts plain strings to error instances.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

guaranteed-error

npm version javascript standard style travis build coveralls coverage david dependencies david dev dependencies

Fixes up error objects, and converts plain strings to error instances.

npm install guaranteed-error

try {
  doSomething()
} catch (err) {
  // err === 'something broke' (not an Error instance)
  err = guaranteedError(err)
  /* err is now an Error instance, with the following stack:
Error: something broke
    at <unknown>
  */
}

Keywords

error

FAQs

Package last updated on 03 Oct 2016

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