Zero dependencies package exporting a single and fast (<50ms) asynchronous function returning a browser fingerprint, without requiring any permission to the user.
npm install get-browser-fingerprintZero dependencies package exporting a single and fast (<50ms) asynchronous function returning a browser fingerprint, without requiring any permission to the user.
Get browser fingerprint:
``js`
import getBrowserFingerprint from 'get-browser-fingerprint';
const fingerprint = await getBrowserFingerprint();
console.log(fingerprint);
Options available:
- hardwareOnly (default true): use only hardware info about device.debug
- (default false): log data used to generate fingerprint to console and add canvas/webgl/audio elements to body.
To test locally:
`sh`
fnm install
pnpm install
pnpm exec playwright install chromium
pnpm test
To run the example locally:
`sh``
pnpm serve -p 80 ./src