# birecord

> Bi-directional record in type-safe way

Latest version **0.1.2** (published 2026-07-09) · (MIT OR Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install birecord
pnpm add birecord
yarn add birecord
bun add birecord
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2026-07-09 |
| First published | 2023-08-03 |
| Weekly downloads | 0 |
| License | (MIT OR Apache-2.0) |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 18 |
| Author | JongChan Choi <rieul@portone.io> |
| Maintainers | kiwiyou, cirnov, finalchild, supremeson, disjukr |
| Keywords | birecord, bimap, bidirectional |

## Links

- npm: https://www.npmjs.com/package/birecord
- Repository: https://github.com/portone-io/birecord
- Homepage: https://github.com/portone-io/birecord#readme
- Issues: https://github.com/portone-io/birecord/issues
- npm.io page: https://npm.io/package/birecord

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2026-07-09
- 0.1.1 — 2023-08-03
- 0.1.0 — 2023-08-03

## README

# birecord

Bi-directional record in type-safe way

## How to use

```sh
npm install birecord
```

```ts
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"
```

---
_Source: https://npm.io/package/birecord · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
