Execute a callback when a request closes, finishes, or errors
on-finished is a Node.js module that executes a callback when an HTTP request or response closes, finishes, or errors. The library provides functions to attach listeners that invoke once when a request or response finishes, with error information passed to the callback if applicable, and includes utility functions to check whether a request or response has already finished. It's built for JavaScript and Node.js and is distributed via npm.