
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
koa-server-push
Advanced tools
HTTP2 Server Push middleware for Koa
$ npm install koa-server-push
Usage for Koa 2.x (current version of node)
const Koa = require('koa');
const serverpush = require('koa-server-push');
const app = new Koa();
app.use(serverpush());
// OR
// app.use(serverpush({
// manifestName: 'anothername.json',
// gaeproxy: true,
// singleheader: true
// }));
manifestName The name of the manifest files. Defaults to 'push_manifest.json'.gaeproxy Set the X-Associated-Content header as well. Defaults to false.singleheader Set the Link header as a comma separated string instead of multiple Link headers. Defaults to false.'use strict';
const Koa = require('koa');
const serve = require('koa-static');
const convert = require('koa-convert');
const serverpush = require('koa-server-push');
const app = new Koa();
app.use(serverpush());
// OR
// app.use(serverpush({
// manifestName: 'anothername.json',
// gaeproxy: true,
// singleheader: true
// }));
app.use(convert(serve('test/fixtures')));
/**
* Note:
* Please ensure that the server push middleware is not used after the
* middleware that sets the response body and response type. This use case is
* not supported at this time.
*/
app.listen(3000);
FAQs
HTTP2 push middleware for koa
We found that koa-server-push demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.