npm · npm:optional
optional active
Allows you to optionally include modules without surrounding everything with 'try/catch'
The latest stable version of optional is 0.1.4, published on 2017-07-13. Verified by Vigia on 2026-11-12.
| Latest stable version | 0.1.4 |
|---|---|
| Published | 2017-07-13 16:31:10 UTC |
| Install | npm install optional@latest |
| Requires (engines) | none declared |
| Peer dependencies | — |
| Dist-tags | latest: 0.1.4 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 12:50:48 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", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/npm/optional . 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 | 2017-07-13 16:31:10 UTC · 3409 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 7 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
0.1.4 | 2017-07-13 16:31:10 UTC |
0.1.3 | 2015-02-26 17:18:06 UTC |
0.1.2 | 2014-12-10 00:14:22 UTC |
0.1.1 | 2014-12-09 05:20:00 UTC |
0.1.0 | 2014-09-28 22:30:48 UTC |
Showing the 5 most recent of 5 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?
The latest stable version of optional is 0.1.4, published on 2017-07-13. Verified by Vigia on 2026-11-12.
How do I install the latest version of optional?
Run npm install optional@latest. The latest stable version is 0.1.4 (verified 2026-11-12).
Is optional deprecated?
No. optional is not marked as deprecated in the registry.
Which Node.js version does optional require?
optional 0.1.4 does not declare a Node.js version requirement.
Does optional 0.1.4 have known vulnerabilities?
No known advisories affect optional 0.1.4 according to the data Vigia checks.
Is optional still maintained?
optional published 0 stable releases in the last 12 months; the most recent was 3409 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @trpc/tanstack-react-query
- simple-xml-to-json
- vega-format
- babel-preset-solid
- postprocessing
- @ckeditor/ckeditor5-basic-styles
- @tloncorp/tlon-skill-linux-x64
- react-uid
- @arcanis/slice-ansi
- @rrweb/utils
- download-stats
- @types/lodash.escaperegexp
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) [](https://vigia.coredls.cloud/npm/optional) [](https://vigia.coredls.cloud/npm/optional)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/optional
GET https://vigia.coredls.cloud/v1/packages/npm/optional/versions/{version}