on-finished
npmv2.4.1Execute a callback when a request closes, finishes, or errors
Not recommended for new projects
No — on-finished should not be adopted for new projects. Last published 1660 days ago.
- AAdoption: grade A, Excellent.
96.7M downloads per week and 5 known dependents.
- FMaintenance: grade F, Failing.
Last published 1660 days ago.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 13 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding on-finished to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing on-finished, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 0.8
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the on-finished README.
var onFinished = require('on-finished')Dependencies
Declared by on-finished v2.4.1. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (9)
Used by
Popular packages that depend on on-finished.
Node.js final http responder
Better streaming static file server with Range and conditional-GET support
Node.js body parsing middleware
Fast, unopinionated, minimalist web framework
Koa web app framework
Relationship graph
Dependencies (left) and dependents (right) of on-finished.
Frequently installed together
Create HTTP error objects
An AST-based pattern checker for JavaScript.
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Lightweight debugging utility for Node.js and the browser
Escape string for use in HTML
HTTP status utility
Create and parse HTTP Content-Type header
The ultimate javascript content-type utility.
Infer the content-type of a request.
HTTP response freshness testing
parse a url with memoization
Manipulate the HTTP Vary header
Release history
No releases in the last two years, typically about 61 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.4.1latest | 4 years ago | 13 KB | MIT |
| 2.4.0 | 4 years ago | 13 KB | 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 | 12 years ago | — | MIT |
| 2.1.0 | 12 years ago | — | MIT |
| 2.0.0 | 12 years ago | — | MIT |
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 96.7M downloads per week and 5 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 (96.7M 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.
Maintainers
Frequently asked questions
Should I use on-finished?
No — on-finished should not be adopted for new projects. Last published 1660 days ago.
How do I install on-finished?
Run `npm install on-finished` to add on-finished to your npm project.
How many dependencies does on-finished have?
on-finished declares 10 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 13 KB on disk.
What license is on-finished released under?
on-finished is distributed under the MIT license.
How popular is on-finished?
on-finished has approximately 96,718,568 downloads per week and 5 known dependent packages.
Is on-finished still maintained?
The most recent release of on-finished (v2.4.1) was published 4 years ago.
Does on-finished run install scripts?
No. on-finished does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.