npm · npm:when-exit
when-exit active
Execute a function right before the process, or the browser's tab, is about to exit.
The latest stable version of when-exit is 2.1.5, published on 2025-10-28. Verified by Vigia on 2026-11-12.
| Latest stable version | 2.1.5 |
|---|---|
| Published | 2025-10-28 22:52:37 UTC |
| Install | npm install when-exit@latest |
| Requires (engines) | none declared |
| Peer dependencies | — |
| Dist-tags | latest: 2.1.5 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 15:50:56 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 "when-exit", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/npm/when-exit . 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 | slowing down |
|---|---|
| Last stable release | 2025-10-28 22:52:37 UTC · 380 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 8 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
2.1.5 | 2025-10-28 22:52:37 UTC |
2.1.4 | 2025-01-12 18:35:21 UTC |
2.1.3 | 2024-06-30 13:49:15 UTC |
2.1.2 | 2023-12-09 23:50:49 UTC |
2.1.1 | 2023-08-03 17:37:40 UTC |
2.1.0 | 2023-02-15 00:50:09 UTC |
2.0.0 | 2022-04-06 00:11:25 UTC |
1.0.0 | 2022-02-08 21:14:56 UTC |
Showing the 8 most recent of 8 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 when-exit?
The latest stable version of when-exit is 2.1.5, published on 2025-10-28. Verified by Vigia on 2026-11-12.
How do I install the latest version of when-exit?
Run npm install when-exit@latest. The latest stable version is 2.1.5 (verified 2026-11-12).
Is when-exit deprecated?
No. when-exit is not marked as deprecated in the registry.
Which Node.js version does when-exit require?
when-exit 2.1.5 does not declare a Node.js version requirement.
Does when-exit 2.1.5 have known vulnerabilities?
No known advisories affect when-exit 2.1.5 according to the data Vigia checks.
Is when-exit still maintained?
when-exit published 0 stable releases in the last 12 months; the most recent was 380 days ago. Activity: slowing down.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @xyflow/system
- regexp-tree
- @babel/plugin-proposal-json-strings
- serve-handler
- union
- @contenthook/node
- uniq
- @gar/promise-retry
- jasmine-core
- merge-options
- @opentelemetry/instrumentation-aws-lambda
- is-path-in-cwd
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/when-exit) [](https://vigia.coredls.cloud/npm/when-exit) [](https://vigia.coredls.cloud/npm/when-exit)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/when-exit
GET https://vigia.coredls.cloud/v1/packages/npm/when-exit/versions/{version}