npm · npm:optional-js
optional-js active
Optionals for JS - wrapper for possibly undefined values, inspired by Java Optional API
The latest stable version of optional-js is 2.3.0, published on 2020-07-22. Verified by Vigia on 2026-11-12.
| Latest stable version | 2.3.0 |
|---|---|
| Published | 2020-07-22 21:01:42 UTC |
| Install | npm install optional-js@latest |
| Requires (engines) | none declared |
| Peer dependencies | — |
| Dist-tags | latest: 2.3.0 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:19:04 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the npm package "optional-js", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/npm/optional-js . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2020-07-22 21:01:42 UTC · 2303 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 19 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
2.3.0 | 2020-07-22 21:01:42 UTC |
2.1.1 | 2019-04-14 17:52:15 UTC |
2.1.0 | 2019-04-14 16:48:41 UTC |
2.0.0 | 2018-03-21 01:02:38 UTC |
1.3.1 | 2018-03-21 00:17:42 UTC |
1.3.0 | 2018-03-20 23:26:37 UTC |
1.2.1 | 2016-12-01 23:22:17 UTC |
1.2.0 | 2016-10-06 23:03:37 UTC |
1.1.2 | 2016-03-22 22:42:39 UTC |
1.1.1 | 2016-02-10 22:40:33 UTC |
1.0.1 | 2015-05-17 18:22:31 UTC |
0.1.7 | 2015-03-11 00:58:47 UTC |
0.1.6 | 2015-03-10 20:42:51 UTC |
0.1.5 | 2015-03-10 20:39:46 UTC |
0.1.4 | 2015-02-22 23:58:18 UTC |
0.1.3 | 2015-02-20 00:21:11 UTC |
0.1.2 | 2015-02-19 23:26:00 UTC |
0.1.1 | 2015-02-17 02:31:01 UTC |
0.1.0 | 2015-02-17 02:17:49 UTC |
Showing the 19 most recent of 19 versions. JSON
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of optional-js?
The latest stable version of optional-js is 2.3.0, published on 2020-07-22. Verified by Vigia on 2026-11-12.
How do I install the latest version of optional-js?
Run npm install optional-js@latest. The latest stable version is 2.3.0 (verified 2026-11-12).
Is optional-js deprecated?
No. optional-js is not marked as deprecated in the registry.
Which Node.js version does optional-js require?
optional-js 2.3.0 does not declare a Node.js version requirement.
Does optional-js 2.3.0 have known vulnerabilities?
No known advisories affect optional-js 2.3.0 according to the data Vigia checks.
Is optional-js still maintained?
optional-js published 0 stable releases in the last 12 months; the most recent was 2303 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @types/vfile
- tap-mocha-reporter
- @cosmjs/stargate
- content-type-parser
- @strapi/utils
- @ag-grid-enterprise/excel-export
- @fluentui/tokens
- @inversifyjs/prototype-utils
- jss-plugin-extend
- sharp-ico
- brace
- @earendil-works/pi-agent-core
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/optional-js) [](https://vigia.coredls.cloud/npm/optional-js) [](https://vigia.coredls.cloud/npm/optional-js)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/optional-js
GET https://vigia.coredls.cloud/v1/packages/npm/optional-js/versions/{version}