Best Practices,
with One Import.
A deterministic, atomic utility library for business logic โ normalizing messy inputs from external protocols into stable representations.
API Reference
npm install bizkit
import b from "bizkit";
b.locale.canonicalize("zh_TW"); // "zh-TW"
b.money.parse("12.34 USD"); // { amount: 1234n, currency: "USD", scale: 2 }
b.url.join("https://a.com", "api"); // "https://a.com/api"
b.redact.email("john@example.com"); // "j***@example.com"
b.country("JP")?.flag; // "๐ฏ๐ต"
Why BizKit?
fn
Pure Functions
No global state, no I/O, no Date.now(), no Intl locale detection. Same input always yields the same output.
ยง
Standards-Based
Built on ISO 4217, ISO 3166, BCP 47, RFC 9110, GDPR, PCI-DSS, and more. Every decision is traceable to a specification.
=
Deterministic Output
Same semantics produce the same string representation. No fragmentation in cache keys, log dimensions, or comparisons.
0
Zero Dependencies
Each function is atomic and self-contained. No hidden policy decisions. No platform-specific behavior.