fingerprinter-js
Version:
A modern JavaScript library for generating unique and reliable browser fingerprints with built-in bot detection
34 lines • 874 B
TypeScript
import { SuspectAnalysis } from "./suspect-analyzer";
/**
* Interface for fingerprint options
*/
export interface FingerprintOptions {
excludeScreenResolution?: boolean;
excludeTimezone?: boolean;
excludeLanguage?: boolean;
excludeCanvas?: boolean;
excludeWebGL?: boolean;
excludeAudio?: boolean;
excludePlugins?: boolean;
excludeFonts?: boolean;
customData?: Record<string, any>;
allowUnstableData?: boolean;
includeSuspectAnalysis?: boolean;
}
/**
* Interface for fingerprint result
*/
export interface FingerprintResult {
fingerprint: string;
components: Record<string, any>;
confidence: number;
suspectAnalysis?: SuspectAnalysis;
}
/**
* Interface for component collectors
*/
export interface ComponentCollector {
name: string;
collect(): Promise<any> | any;
}
//# sourceMappingURL=types.d.ts.map