es6-crawler-detect
Version:
This is an ES6 adaptation of the original PHP library CrawlerDetect, this library will help you detect bots/crawlers/spiders vie the useragent.
9 lines • 362 B
TypeScript
import { NextFunction, Request, Response } from 'express-serve-static-core';
import { Crawler } from './lib/crawler';
export type Middleware = (request: Request, response: Response, next: NextFunction) => Promise<Response>;
declare module 'express-serve-static-core' {
interface Request {
Crawler: Crawler;
}
}
//# sourceMappingURL=types.d.ts.map