UNPKG

bot-guardian-js

Version:

A powerful bot detection and prevention library for Node.js applications

14 lines (13 loc) 344 B
import UAParser from 'ua-parser-js'; export interface UAAnalysis { isBot: boolean; browser: string; os: string; device: string; } export declare function analyzeUA(userAgent: string): UAAnalysis; export declare class UserAgentAnalyzer { private parser; constructor(); analyze(userAgent: string): UAParser.IResult; }