si-prefix v0.2.0 is a JavaScript library for converting numeric values into human-readable strings with SI or IEC prefixes (e.g., '35 mm', '2 KiB'). It wraps the si-prefix library for Node.js, offering basic formatting via si-prefix. Works with custom units and scales. Last updated 2021, no recent releases; minimal dependencies.
npm install si-prefixNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic formatting with SI base units (metre, kilogram, byte) and custom unit creation with Scale and Unit.
Use si.kilogram.suffix(value) for grams, or create a custom gram unit.
Access si.byte.decimal for SI prefixes (kB, MB).
Use Scale({minor: true}) to include these prefixes.Run 'npm install si-prefix' and ensure package.json has it.
Run 'npm install si-prefix'.
No dependency data recorded yet.