prefix-si

JSON →
library 1.2.0 ·javascript
verified Jun 4, 2026

A JavaScript library for formatting numbers with SI, IEC, and BS1852 prefixes. Supports binary (KiB/MiB), metric (k/M/G), and BS1852 (e.g., 4K7) styles. Current stable version 1.2.0. TypeScript types included. Lightweight with no dependencies. Comparable to filesize.js but with BS1852 support.