Type definitions are available in the @types/on-headers package


  • Version 1.0.2
  • Published
  • 7.54 kB
  • No dependencies
  • MIT license


npm i on-headers
yarn add on-headers
pnpm add on-headers


Execute a listener when a response is about to write headers

Dependencies (0)

No dependencies.

Dev Dependencies (10)

Peer Dependencies (0)

No peer dependencies.


To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/on-headers.

  • Markdown
  • HTML
    <a href="https://www.jsdocs.io/package/on-headers"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>