@jitsi/js-utils
v6.2.0
Published
Utilities for Jitsi JS projects
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:
npm run build # Compile TypeScript to dist/
npm run clean # Remove the dist/ directory
npm run lint # Run ESLint on source filesProject Structure
- Source files are in TypeScript (
.ts) in the root and module directories - Compiled output (
.jsand.d.ts) goes todist/ - 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.
