UNPKG

express-user-agent-blocker

Version:

Express middleware for blocking access based on User Agent

9 lines (8 loc) 257 B
import { Request } from 'express'; /** * Reads the user agent from the request * @param {Request} req - the request object * @return {string} the user agent if present in the request */ declare const readUa: (req: Request) => string; export { readUa };