visitor-identity-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Visitor Identity logo

Current NPM version

Visitor Identity is a source-available, client-side library designed to obtain browser fingerprints. The generated unique id remains consistent even in incognito/private browsing modes.

Demo

Visit https://visitor-identity-js.vercel.app to know your visitor id.

Try visiting the same page in incognito mode and notice how the visitor id remains the same!

Installation

You can install the module via npm:

npm i visitor-identity-js

Usage

import React from 'react';
import VisitorId from 'visitor-identity-js';

...

//In React class component
componentDidMount() {
  var unique_id = VisitorId();
  console.log(unique_id);
}

Supported browsers

The library supports all popular browsers. See more details and learn how to run the library in old browsers in the browser support guide.

Package Sidebar

Install

npm i visitor-identity-js

Weekly Downloads

32

Version

1.0.3

License

MIT

Unpacked Size

3.82 kB

Total Files

5

Last publish

Collaborators

  • amitip81