# @jkob/browser-id

> Browser id management

Latest version **1.0.1** (published 2023-08-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jkob/browser-id
pnpm add @jkob/browser-id
yarn add @jkob/browser-id
bun add @jkob/browser-id
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-08-24 |
| First published | 2023-08-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jakub Wiśniewski |
| Maintainers | jkob |

## Links

- npm: https://www.npmjs.com/package/@jkob/browser-id
- npm.io page: https://npm.io/package/@jkob/browser-id

## Dependencies (1)

- [nanoid](https://npm.io/package/nanoid.md) ^3.3.4

## Recent versions

- 1.0.1 (latest) — 2023-08-24
- 1.0.0 — 2023-08-09

## README

# @jkob/browser-id

Easily manage browser id, listen to changes.

### Usage

```js
import BrowserId from "@jkob/browser-id";
const browserId = new BrowserId(); // here browser id is automatically generated if not present before

const value = browserId.get();

browserId.change("nextValue");

browserId.addEventListener((prev, next) => {
	console.log(`browser.id changed from ${prev} to ${next}`);
})

```

---
_Source: https://npm.io/package/@jkob/browser-id · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
