function packMetadata
packMetadata(metadata: Record<string, string>): Record<string, string>

Collapse the packable small fields into one JSON b entry, dropping them from the top level. Falsy values are omitted (the "" = absent convention), so the b entry only appears when at least one packed field is actually present.

Parameters

metadata: Record<string, string>

Return Type

Record<string, string>

Usage

import { packMetadata } from "docs/payments.ts";