1.0.2 • Published 2 years ago

@keels/remove-powered v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

remove-powered

This package provides middleware for Express.js to remove the X-Powered-By header. By default, Express sets the X-Powered-By header to "Express". This can potentially be exploited, though using this middleware does not entirely obscure the use of Express.

Installation

npm install @keels/remove-powered --save

Usage

Use this package as Express middleware.

const rp = require('@keels/remove-powered');

app.use(rp.removePowered);

Development

This project uses ESLint and EditorConfig to standardise code styles.

This project uses Jest and SuperTest for tests. To run tests, execute:

npm test