birecord
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

birecord

Bi-directional record in type-safe way

How to use

npm install birecord
import birecord from "birecord";
// import birecord_for_deno from "https://deno.land/x/birecord/mod.ts";

const x = birecord({ foo: 123, bar: 456, baz: 789 });
const test1 = x.get("foo"); // 123
const test2 = x.get(123); // "foo"

Package Sidebar

Install

npm i birecord

Weekly Downloads

89

Version

0.1.1

License

(MIT OR Apache-2.0)

Unpacked Size

4.6 kB

Total Files

6

Last publish

Collaborators

  • soleechoi
  • xiniha
  • disjukr