# append-header

> append-header

Latest version **0.0.1** (published 2013-12-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install append-header
pnpm add append-header
yarn add append-header
bun add append-header
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-12-18 |
| First published | 2013-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Christian Tellnes |
| Maintainers | tellnes |
| Keywords | header, add, append |

## Links

- npm: https://www.npmjs.com/package/append-header
- Repository: https://github.com/tellnes/append-header
- Issues: https://github.com/tellnes/append-header/issues
- npm.io page: https://npm.io/package/append-header

## Recent versions

- 0.0.1 (latest) — 2013-12-18

## README

# append-header

Extends a response object with an appendHeader method.

## Usage

```js
var app = require('express')()
require('append-header')(app.response)

app.use(express.compress())
app.use(function (req, res, next) {
  res.appendHeader('Vary', 'Accept-Language')
  next()
})
```

The server response will now have a `Vary` header set to `Accept-Encoding, Accept-Language`.


## Extending all HTTP response objects

```js
var http = require('http')
require('append-header')(http.ServerResponse.prototype)
```

## Install

    $ npm install append-header

## License

MIT

---
_Source: https://npm.io/package/append-header · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
