tiny-fingerprint-js
v1.2.3
Published
A tiny script to fingerprint users based on a small number of parameters. Good enough to analyse trends, not good enough for precision. For when you need it small, not accurate.
Readme
Tiny Fingerprint
This package provides a way to identify a user via a tiny script. The uniqueness of the fingerprint is not high. As such this shouldn't be relied upon for any data that requires precisions. Instead it can be used to track trends, track short lived events, or whatever else where accuracy isn't a big concern.
Installation
Install using Yarn or NPM, or any other package manager you might prefer.
yarn add tiny-fingerprint-jsnpm install tiny-fingerprint-jsUsage
import { getTinyFingerprint } from "tiny-fingerprint-js"
const fingerprint = getTinyFingerprint()You can optionally pass additional data you might have on the user via an array.
const additionalData = [user.shoe_size, user.fingernail_length]
const fingerprint = getTinyFingerprint(additionalData)The function will always return an 8-character string of numbers and lowercase letters.
