New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@maurosala/use-fingerprint

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maurosala/use-fingerprint

Get canvas fingerprint and browser signature

1.1.2
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

React useFingerprint hook

A simple React hook to get canvas fingerprint and browser signature.

Installation

npm install @maurosala/use-fingerprint

Usage

import useFingerprint from '@maurosala/use-fingerprint'

const fp = useFingerprint()
console.log(fp)

output:

{
  "browser": "dd5b420791fe9a7dc9ebd8deb648692f76d68b839b3d04cae30702f76c31bc14",
  "id": "B48D36C2",
  "ms": 20.4
}
  • browser: browser signature
  • id: canvas fingerprint
  • ms: time in milliseconds to get the fingerprint

FAQs

Package last updated on 19 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts