Gathering detailed insights and metrics for make-error-cause
Gathering detailed insights and metrics for make-error-cause
Gathering detailed insights and metrics for make-error-cause
Gathering detailed insights and metrics for make-error-cause
npm install make-error-cause
Typescript
Module System
Node Version
NPM Version
97.7
Supply Chain
86
Quality
75.7
Maintenance
100
Vulnerability
100
License
Output Extra Property with Inspect
Published on 06 Nov 2019
Mark Message as Optional in TypeScript Constructor
Published on 10 Jul 2019
Custom Inspect
Published on 26 May 2018
JavaScript Normal Full Stack Order
Published on 19 May 2018
ES2015 Only
Published on 01 Apr 2018
Fix Main Function Overload
Published on 18 Oct 2016
TypeScript (88.85%)
JavaScript (11.15%)
Total Downloads
180,988,951
Last Day
50,835
Last Week
396,486
Last Month
1,910,709
Last Year
24,520,621
67 Stars
68 Commits
7 Forks
3 Watching
1 Branches
5 Contributors
Latest Version
2.3.0
Package Id
make-error-cause@2.3.0
Size
3.43 kB
NPM Version
6.9.0
Node Version
13.0.1
Publised On
06 Nov 2019
Cumulative downloads
Total Downloads
Last day
-39.8%
50,835
Compared to previous day
Last week
-12.1%
396,486
Compared to previous week
Last month
-7.5%
1,910,709
Compared to previous month
Last year
-8.3%
24,520,621
Compared to previous year
Make your own nested errors.
instanceof
inspect()
)fullStack(err)
make-error
npm install make-error-cause --save
1import { BaseError, fullStack } from "make-error-cause"; 2 3class CustomError extends BaseError { 4 constructor(message, cause) { 5 super(message, cause); 6 } 7} 8 9const error = new Error("Boom!"); 10const customError = new CustomError("Another boom!", error); 11 12console.log(customError); // Automatically prints full stack trace using `fullStack(this)`. 13console.log(customError.cause); // Check causes via the `.cause` property. 14 15console.log(customError instanceof Error); //=> true
Inspired by verror
, and others, but created lighter and without core dependencies for browser usage.
Other references:
Apache 2.0
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
Found 2/19 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
34 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More