Skip to main content

Built and signed on GitHub Actions

Unique ID for current browser (client).

This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (3.0.2)

browser-id Node.js CI codecov

browserID() function always gives you the same ID for the same browser. You can use it as a key to store user preferences on server side.

import { browserID } from 'browser-id';
const id = browserID();

The return value is always a string when using TypeScript.

Use package name with scope when used in Deno with JSR.

import { browserID } from '@catchen/browser-id';
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@catchen/browser-id

Import symbol

import * as browser_id from "@catchen/browser-id";

---- OR ----

Import directly with a jsr specifier

import * as browser_id from "jsr:@catchen/browser-id";

Add Package

npx jsr add @catchen/browser-id

Import symbol

import * as browser_id from "@catchen/browser-id";

Add Package

yarn dlx jsr add @catchen/browser-id

Import symbol

import * as browser_id from "@catchen/browser-id";

Add Package

pnpm dlx jsr add @catchen/browser-id

Import symbol

import * as browser_id from "@catchen/browser-id";

Add Package

bunx jsr add @catchen/browser-id

Import symbol

import * as browser_id from "@catchen/browser-id";