UNPKG

exstack

Version:

A utility library designed to simplify and enhance Express.js applications.

14 lines (13 loc) 362 B
//#region src/middle/x-powered.ts /** * Middleware to customize or override the `X-Powered-By` HTTP header. * Often used for branding or hiding technology stack. * * @param name - Value to be set for the `X-Powered-By` header */ const poweredBy = (name) => (_, res, next) => { res.setHeader("x-powered-by", name); next(); }; //#endregion export { poweredBy };