Getting Started
Installation
bash
npm install @neoprintjs/corebash
yarn add @neoprintjs/corebash
pnpm add @neoprintjs/coreQuick Start
ts
import neoprint from '@neoprintjs/core'
const fp = await neoprint.get()
console.log(fp.id) // full fingerprint hash
console.log(fp.stableId) // survives browser updates
console.log(fp.crossBrowserId) // same across Chrome/Firefox/Safari
console.log(fp.confidence) // 0–1
console.log(fp.entropy) // bits of entropyWhat's in a Fingerprint?
Every call to neoprint.get() returns a Fingerprint object:
ts
interface Fingerprint {
id: string // full 128-bit hex hash
stableId: string // update-resistant hash
weightedId: string // collision-resistant hash
crossBrowserId: string // hardware-only hash
confidence: number // 0–1
spoofingScore: number // 0–1
entropy: number // total bits
components: { ... } // raw collector data
timestamp: number // when it was generated
}