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
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-fingerprintor
<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
visitorIdis a unique identifier for each visitor. Hashed bysha1.componentscontainsfont, which is the available fonts in the browser.
{
"visitorId": "77ce0377defbd11b77b1f4ad54ca40ea5ef28490",
"components": {
"font": [
"Helvetica Neue",
"Menlo",
"Monaco",
"Apple Symbols",
"Arial Unicode MS",
"Gill Sans",
"Menlo"
]
}
}