0.0.2 • Published 3 years ago
@hong4rc/powered-by v0.0.2
@hong4rc/powered-by
Express middleware custom
X-Powered-X
Install
$ npm install @hong4rc/powered-by
Remember install @types/express
for typescript:
$ npm install -D @types/express
Usage
Typescript
import express from 'express';
import { poweredBy } from '@hong4rc/powered-by';
const app = express();
app.use(poweredBy());
const express = require('express');
const { poweredBy } = require('@hong4rc/powered-by');
const app = express();
app.use(poweredBy());
API
poweredBy(value)
value
Type: string | undefined
Custom value for x-powered-by
, use undefined
to remove X-Powered-By