JSPM

font-fingerprint

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q23246F
  • License MIT

font-fingerprint is a library that generates a unique identifier for each visitor based on the font of the browser.

Package Exports

  • font-fingerprint
  • font-fingerprint/dist/index.esm.js
  • font-fingerprint/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (font-fingerprint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

font-fingerprint

jsdelivr npm

font-fingerprint is a library that generates a unique identifier for each visitor based on the installed fonts of the browser.

Almost fingerprint libraries are based on the various browser features. Even with the same device, different browser types can generate different identification values.

font-fingerprint is free from these constraints because it only considers the types of installed fonts.

This library is inspired by fingerprintjs.

Install

npm install font-fingerprint

or

<script src="https://cdn.jsdelivr.net/npm/font-fingerprint@1.0.0/dist/index.min.js"></script>

Usage

import getFingerprint from "font-fingerprint";

const result = getFingerprint();

Result

  • visitorId is a unique identifier for each visitor. Hashed by sha1.
  • components contains font, which is the available fonts in the browser.
{
  "visitorId": "77ce0377defbd11b77b1f4ad54ca40ea5ef28490",
  "components": {
    "font": [
      "Helvetica Neue",
      "Menlo",
      "Monaco",
      "Apple Symbols",
      "Arial Unicode MS",
      "Gill Sans",
      "Menlo"
    ]
  }
}