get-browser-fingerprint
TypeScript icon, indicating that this package has built-in type declarations

4.1.0 • Public • Published

get-browser-fingerprint

Zero dependencies package exporting a single and fast (<50ms) asynchronous function returning a browser fingerprint, without requiring any permission to the user.

Usage

Get browser fingerprint:

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.

Development

To test locally:

fnm install
pnpm install
pnpm exec playwright install chromium
pnpm test

To run example locally:

pnpm serve -p 80 ./src

Readme

Keywords

none

Package Sidebar

Install

npm i get-browser-fingerprint

Weekly Downloads

6,031

Version

4.1.0

License

MIT

Unpacked Size

11.9 kB

Total Files

4

Last publish

Collaborators

  • damianobarbati