UNPKG

@elhamdev/tracejs

Version:

A modern, privacy-conscious alternative to browser fingerprinting for unique user identification.

17 lines (16 loc) 503 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseFingerprint = void 0; class BaseFingerprint { async getFingerprint() { const characteristics = await this.getCharacteristics(); return JSON.stringify(characteristics); } async getFingerprintData() { return { characteristics: await this.getCharacteristics(), strength: this.getStrengthScore() }; } } exports.BaseFingerprint = BaseFingerprint;