bdir
v1.0.3
Published
Bi-directional object handler for managing enumerable values and their labels.
Maintainers
Readme
bdir – Bidirectional Lookup Table Utility for TypeScript ↕️
bdir is a lightweight utility for building bi-directional lookup tables with first-class TypeScript support. It lets you declare the complete forward direction (keys → values) just once, and automatically keeps reverse lookups (values → labels), runtime validation helpers, and strongly-typed unions in sync.
The package ships ESM + CJS bundles, fully typed declarations, and zero dependencies.
Please refer to the official github repo for the most up-to-date documentation.
