{"library":"unitformat","type":"library","category":null,"description":"UnitFormat.js is a lightweight, dependency-free number formatter that converts raw numbers to human-readable strings with metric suffixes like 10km, 5GB, 17kHz, 220MW. Current stable version is 1.1.5 with a slow release cadence. It supports base-10 and base-2 prefixes, custom unit strings, and configurable suffix lists. Differentiators include zero dependencies, TypeScript type definitions, and a single-function API that is easy to embed in browser or Node.js projects. Unlike similar libraries, it does not handle locale-specific formatting or significant figure rounding.","language":"javascript","status":"active","version":"1.1.5","tags":["javascript","number","unit","format","formatter","human readable","cm","m","km","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install unitformat","imports":["import unitFormat from 'unitformat';","const unitFormat = require('unitformat');","import unitFormat from 'unitformat';"]},{"cmd":"yarn add unitformat","imports":[]},{"cmd":"pnpm add unitformat","imports":[]}],"homepage":"https://github.com/rawify/UnitFormat.js","github":"ssh://git@github.com/rawify/UnitFormat.js","docs":null,"changelog":null,"pypi":null,"npm":"unitformat","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}