optional-require
NodeJS Require that let you handle module not found error without try/catch
25
Versions
Apache-2.0
License
No
Install Scripts
Missing
Provenance
Supply chain provenance
Status for the latest visible version.
No SLSA provenance
npm registry signatures
gitHead linked
Without SLSA provenance there is no cryptographic link between this tarball and the public source, so a manually published version cannot be tied back to a reviewed commit.
Maintainers
jchip
Keywords
optional requireoptionalrequire
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| source-diff | net-exec-file:dist/index.js | AI (source-diff): eval("require") is a documented bundler-compatibility idiom in optional-require; no actual network calls or malicious code execution present. Stable false positive for this package. | ai |
Versions (showing 25 of 25)
| Version | Deps | Published |
|---|---|---|
| 2.1.0 | 1 / 17 | |
| 2.0.4 | 1 / 14 | |
| 2.0.3 | 1 / 12 | |
| 2.0.2 | 1 / 12 | |
| 2.0.1 | 1 / 12 | |
| 2.0.0 | 1 / 12 | |
| 1.1.10 | 1 / 29 | |
| 1.1.9 | 1 / 27 | |
| 1.1.8 | 1 / 0 | |
| 1.1.7 | 1 / 0 | |
| 1.1.6 | 1 / 0 | |
| 1.1.5 | 1 / 0 | |
| 1.1.4 | 1 / 0 | |
| 1.1.3 | 1 / 0 | |
| 1.1.2 | 1 / 0 | |
| 1.1.1 | 1 / 0 | |
| 1.1.0 | 1 / 0 | |
| 1.0.3 | 0 / 5 | |
| 1.0.2 | 0 / 5 | |
| 1.0.1 | 1 / 4 | |
| 1.0.0 | 0 / 3 | |
| 0.1.3 | 0 / 3 | |
| 0.1.2 | 0 / 3 | |
| 0.1.1 | 0 / 3 | |
| 0.1.0 | 0 / 3 |