Installations
npm install make-error-cause
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
13.0.1
NPM Version
6.9.0
Score
97.7
Supply Chain
86
Quality
75.7
Maintenance
100
Vulnerability
100
License
Releases
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
Contributors
Unable to fetch Contributors
Languages
TypeScript (88.85%)
JavaScript (11.15%)
Developer
blakeembrey
Download Statistics
Total Downloads
180,988,951
Last Day
50,835
Last Week
396,486
Last Month
1,910,709
Last Year
24,520,621
GitHub Statistics
67 Stars
68 Commits
7 Forks
3 Watching
1 Branches
5 Contributors
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
180,988,951
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Make Error Cause
Make your own nested errors.
Features
- Compatible with node.js and browsers
- Works with
instanceof
- Automatic full stack traces in node.js (supports
inspect()
) - Output full stack trace with
fullStack(err)
- Extends
make-error
Installation
npm install make-error-cause --save
Usage
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
Attribution
Inspired by verror
, and others, but created lighter and without core dependencies for browser usage.
Other references:
License
Apache 2.0
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
security policy file detected
Details
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
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
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 13 are checked with a SAST tool
Reason
34 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm
- Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3
- Warn: Project is vulnerable to: MAL-2023-462
- Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw
- Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-qgmg-gppg-76g5
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
2.7
/10
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