Socket
Book a DemoInstallSign in
Socket

zb-fingerprint

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zb-fingerprint

Этот сервис позволяет получать и сохранять уникальный идентификатор пользователя (fingerprint)

1.0.15
latest
npmnpm
Version published
Maintainers
1
Created
Source

Finger Print

Описание

Этот сервис позволяет получать и сохранять уникальный идентификатор пользователя (fingerprint)

Использование

import { FingerPrintService } from './fingerprint-service'

const fingerprintService = new FingerPrintService({
    storageKey: 'user_fingerprint',
    minLength: 32,
    cookie: {
        get: (key) => document.cookie.split('; ').find(row => row.startsWith(key))?.split('=')[1] || null,
        set: (key, value) => document.cookie = `${key}=${value}; path=/;`,
    }
})

fingerprintService.load().then(fp => console.log('User fingerprint:', fp))

API

  • load(options?) — загружает fingerprint пользователя.
  • get() — получает сохранённый fingerprint.
  • set(fingerprint) — сохраняет fingerprint.
  • isValid(fingerprint?) — проверяет валидность fingerprint.
  • buildCustomFingerprint() — создаёт кастомный fingerprint.

Лицензия

MIT.

FAQs

Package last updated on 30 Jun 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.