A Node.js module for parsing and formatting large numbers with SI (metric) prefixes like '10gb' to 1000000000. This package (v2.0.0, last updated in 2012) is a simple, lightweight library that provides parse() and format() functions, making human-readable number inputs easy in CLI arguments or configs. It supports prefixes from k (kilo) to E (exa) and vice versa. Release cadence is dormant; no updates in over a decade. Differentiator: minimalistic, no dependencies, focuses solely on SI notation without IEC binary support.
npm install siNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic parse and format functions with SI prefixes.
Consider using 'filesize' or 'humanize-plus' as modern alternatives.
Use IEC prefixes like 'MiB' not supported. Be aware that 'm' means mega, not milli.
Use a library like 'bytes' for binary interpretation.
Pass desired decimal places as second argument (e.g., si.format(1234567, 4) gives '1.2346M').
Run 'npm install si' or add to package.json dependencies.
Use const si = require('si'); then si.parse().Use require('si') or import * as si from 'si'.No dependency data recorded yet.