{"library":"bidi-js","type":"library","category":null,"description":"The `bidi-js` package provides a pure JavaScript implementation of the Unicode Bidirectional Algorithm (UAX #9) version 13.0.0. It aims for correctness, small bundle size, and performance, having passed all Unicode conformance tests. Currently at version 1.0.3, it offers a stable API for calculating embedding levels, reordering segments, and identifying mirrored characters in mixed-direction text. It ships as ES5 compatible and has no external dependencies, making it suitable for both browser and Node.js environments. The library differentiates itself by providing a factory function for module initialization, allowing for flexible deployment, such as within web workers, and ensuring a self-contained module without closure dependencies.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bidi-js","imports":["import bidiFactory from 'bidi-js'","const bidi = bidiFactory()","bidi.getEmbeddingLevels(text, explicitDirection)"]},{"cmd":"yarn add bidi-js","imports":[]},{"cmd":"pnpm add bidi-js","imports":[]}],"homepage":null,"github":"https://github.com/lojjic/bidi-js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bidi-js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/bidi-js/compatibility"}}