# @jitsi/js-utils

> Utilities for Jitsi JS projects

Latest version **12.0.5** (published 2026-08-06) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @jitsi/js-utils
pnpm add @jitsi/js-utils
yarn add @jitsi/js-utils
bun add @jitsi/js-utils
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 12.0.5 |
| Published | 2026-08-06 |
| First published | 2020-07-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 157.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 34 |
| Maintainers | hristoterezov, yanas, jitsiorg, saghul, mihhu, jallamsetty, andrei.gavrilescu, damencho, calinteodor |
| Keywords | browser, jitsi, utils |

## Links

- npm: https://www.npmjs.com/package/@jitsi/js-utils
- Repository: https://github.com/jitsi/js-utils
- Homepage: https://github.com/jitsi/js-utils#readme
- Issues: https://github.com/jitsi/js-utils/issues
- npm.io page: https://npm.io/package/@jitsi/js-utils

## Dependencies (3)

- [js-md5](https://npm.io/package/js-md5.md) 0.7.3
- [@hapi/bourne](https://npm.io/package/@hapi/bourne.md) 3.0.0
- [ua-parser-js](https://npm.io/package/ua-parser-js.md) 1.0.35

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 12.0.5 (latest) — 2026-08-06
- 12.0.4 — 2026-08-03
- 12.0.3 — 2026-08-03
- 12.0.2 — 2026-07-31
- 12.0.1 — 2026-07-31
- 12.0.0 — 2026-07-31
- 11.0.3 — 2026-07-31
- 11.0.2 — 2026-07-31
- 11.0.1 — 2026-07-31
- 11.0.0 — 2026-07-31
- 10.0.0 — 2026-07-31
- 9.0.0 — 2026-07-31
- 8.1.0 — 2026-07-31
- 8.0.0 — 2026-07-31
- 7.0.0 — 2026-07-31
- … 57 more at https://npm.io/package/@jitsi/js-utils/versions

## README

# js-utils

Collection of utilities for Jitsi JavaScript projects.

## Requirements

This library is designed to be used with a bundler (webpack, rollup, vite, etc.). The package uses `moduleResolution: "bundler"` in its TypeScript configuration and publishes compiled JavaScript targeting ES2019 with ES2020 module syntax.

**Important:** If you're consuming this library, ensure your build tool is configured to handle ES modules. Direct usage in Node.js without a bundler or transpilation may not work as expected.

## Development

### Building

The project is written in TypeScript and compiles to the `dist/` directory:

```bash
npm run build        # Compile TypeScript to dist/
npm run clean        # Remove the dist/ directory
npm run lint         # Run ESLint on source files
```

### Project Structure

- Source files are in TypeScript (`.ts`) in the root and module directories
- Compiled output (`.js` and `.d.ts`) goes to `dist/`
- The package exports multiple subpaths for individual utilities

### Publishing

The package is automatically published to npm when changes are pushed to the master branch. The `prepack` script ensures the package is built before publishing.

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