Note
This is one of 199 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.
🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️
Bi-directional index mapping arbitrary keys to numeric IDs & vice versa.
This package contains functionality which was previously part of and has been extracted from the @thi.ng/associative package.
STABLE - used in production
Search or submit any issues for this package
- @thi.ng/associative - ES Map/Set-compatible implementations with customizable equality semantics & supporting operations
yarn add @thi.ng/bidir-index
ESM import:
import * as bi from "@thi.ng/bidir-index";
Browser ESM import:
<script type="module" src="https://esm.run/@thi.ng/bidir-index"></script>
For Node.js REPL:
const bi = await import("@thi.ng/bidir-index");
Package sizes (brotli'd, pre-treeshake): ESM: 657 bytes
None
TODO
If this project contributes to an academic publication, please cite it as:
@misc{thing-bidir-index,
title = "@thi.ng/bidir-index",
author = "Karsten Schmidt",
note = "https://thi.ng/bidir-index",
year = 2022
}
© 2022 - 2024 Karsten Schmidt // Apache License 2.0