{"library":"bytes-iec","type":"library","category":null,"description":"bytes-iec is a JavaScript and TypeScript utility library, currently at version 3.1.1, designed for parsing and formatting byte size strings. It converts human-readable strings like '1kB' or '2KiB' into their numeric byte equivalents (e.g., 1000, 2048) and vice-versa. As a fork of the popular `bytes` module, `bytes-iec` differentiates itself by offering comprehensive support for ISO/IEC 80000-13:2008 binary and decimal prefixes, including KiB, MiB, etc., and also includes a JEDEC compatibility mode for legacy definitions where metric units have binary values. A key feature is its default use of decimal metric units, which can be configured globally or per-call. The library is actively maintained, indicated by its recent version and clear feature set, and ships with TypeScript definitions, making it suitable for modern JavaScript and TypeScript projects in Node.js environments.","language":"javascript","status":"active","version":"3.1.1","tags":["javascript","byte","bytes","utility","parse","parser","convert","converter","iec"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bytes-iec","imports":["import bytes from 'bytes-iec';","const bytes = require('bytes-iec');","import bytes, { Options, UnitType } from 'bytes-iec';"]},{"cmd":"yarn add bytes-iec","imports":[]},{"cmd":"pnpm add bytes-iec","imports":[]}],"homepage":"https://bytes-iec.js.org","github":"https://github.com/Saevon/bytes.js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bytes-iec","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/bytes-iec/compatibility"}}