UNPKG

is-web-crawler

Version:

A light weight JS library to check if a user agent is a web crawler.

7 lines (6 loc) 226 B
export declare class WebCrawlerService { private cache; isCrawlerUserAgent(topCrawlersToCheck?: number): boolean; isCrawler(userAgent: string, topCrawlersToCheck?: number): boolean; private getCrawler; }