optional-require 1.1.9
NodeJS Require that let you handle module not found error without try/catch
optional-require@1.1.9 was published on 2025-07-01. Its manifest declares 1 runtime dependency and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=4.
All optional-require versions · Permanent reference to 1.1.9 · Latest release
Package specifications
| Version | 1.1.9 |
|---|---|
| License declaration | Apache-2.0 |
| Published | 2025-07-01T01:13:09.715Z |
| Node.js requirement | >=4 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 1 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 22.37 KiB |
| Published file count | 7 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 1 |
| Repository stars | 11 |
| Repository forks | 5 |
Install optional-require 1.1.9
npm install optional-require@1.1.9 pnpm add optional-require@1.1.9 yarn add optional-require@1.1.9
Runtime dependencies
- require-at ^1.0.6
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- require-at@1.0.6 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 0/10 — Found 2/30 approved changesets -- score normalized to 0 |
|---|---|
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Security-Policy | 0/10 — security policy file not detected |
| License | 0/10 — license file not detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/optional-require/1.1.9 — retrieved 2026-10-29T12:13:48.002Z
- https://api.deps.dev/v3/projects/github.com%2Fjchip%2Foptional-require — retrieved 2026-10-29T10:57:28.397Z
- https://api.deps.dev/v3/systems/npm/packages/optional-require/versions/1.1.9 — retrieved 2026-10-29T12:13:48.709Z
- https://api.deps.dev/v3/systems/npm/packages/optional-require/versions/1.1.9:dependencies — retrieved 2026-10-29T12:13:48.724Z