on-finished
npmv2.4.1Execute a callback when a request closes, finishes, or errors
Overview
on-finished is an npm package that execute a callback when a request closes, finishes, or errors. It is extremely widely used, with about 111.9M downloads per week and 2 known dependents in the graph. The latest version is 2.4.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need execute a callback when a request closes, finishes, or errors and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (111.9M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of on-finished.
Dependencies
Runtime (1)
Dev (9)
Used by
Popular packages that depend on on-finished.
Node.js final http responder
Node.js body parsing middleware
Better streaming static file server with Range and conditional-GET support
Fast, unopinionated, minimalist web framework
Koa web app framework
Frequently installed together
Lightweight debugging utility for Node.js and the browser
HTTP status utility
Create HTTP error objects
An AST-based pattern checker for JavaScript.
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Escape string for use in HTML
The ultimate javascript content-type utility.
Create and parse HTTP Content-Type header
Infer the content-type of a request.
HTTP response freshness testing
parse a url with memoization
A querystring parser that supports nesting and arrays, with a depth limit
Version history
| Version | Published | License |
|---|---|---|
| 2.4.1latest | 4 years ago | MIT |
| 2.4.0 | 4 years ago | MIT |
| 2.3.0 | 11 years ago | MIT |
| 2.2.1 | 11 years ago | MIT |
| 2.2.0 | 11 years ago | MIT |
| 2.1.1 | 11 years ago | MIT |
| 2.1.0 | 12 years ago | MIT |
| 2.0.0 | 12 years ago | MIT |
Maintainers
Frequently asked questions
How do I install on-finished?
Run `npm install on-finished` to add on-finished to your npm project.
What license is on-finished released under?
on-finished is distributed under the MIT license.
How popular is on-finished?
on-finished has approximately 111,900,122 downloads per week and 2 known dependent packages.