JSPM

birecord

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 579244
  • Score
    100M100P100Q176997F
  • License (MIT OR Apache-2.0)

Bi-directional record in type-safe way

Package Exports

  • birecord

Readme

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"