# h2-server-push

> HTTP2 Server Push Express Middleware

Latest version **1.0.5** (published 2017-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install h2-server-push
pnpm add h2-server-push
yarn add h2-server-push
bun add h2-server-push
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2017-07-05 |
| First published | 2017-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Liyang |
| Maintainers | elmarini, lng, poyu |
| Keywords | http2, h2, express, node, server, push |

## Links

- npm: https://www.npmjs.com/package/h2-server-push
- Repository: https://github.com/amnisH2/h2-server-push
- Homepage: https://github.com/amnisH2/h2-server-push#readme
- Issues: https://github.com/amnisH2/h2-server-push/issues
- npm.io page: https://npm.io/package/h2-server-push

## Dependencies (2)

- [golombcodedsets-with-base64](https://npm.io/package/golombcodedsets-with-base64.md) 0.0.4
- [html-static-asset-path-extractor](https://npm.io/package/html-static-asset-path-extractor.md) ^1.0.5

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2017-07-05
- 1.0.4 — 2017-07-01
- 1.0.3 — 2017-07-01
- 1.0.2 — 2017-06-30
- 1.0.1 — 2017-06-22
- 1.0.0 — 2017-06-19

## README

# h2-server-push

An express middleware that implements server push in HTTP2.

## Installation

```bash
npm install h2-server-push --save
```
__Note__: Requires `node-spdy` for HTTP2

## Usage

```javascript
const hsp = require('h2-server-push');

const registerParser = hsp('public');

app.get('/', registerParser,  (req, res) => {
    res.sp('index.html', 'public')
});
```

## License 

MIT

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