{"library":"prettysize","type":"library","category":null,"description":"A lightweight utility to convert byte counts into human-readable strings (e.g., 1024 → \"1 kB\") for logging and CLI output. Version 2.0.0 supports sizes from bytes up to exabytes, with options to remove spaces, use single-character suffixes, control decimal places, or return only the numeric value. Minimal dependencies, pure JavaScript, works in Node.js and browsers. Alternatives like filesize.js offer more formatting features, but prettysize focuses on simplicity and small footprint.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","size","bytes","MB","megs"],"install":[{"cmd":"npm install prettysize","imports":["const pretty = require('prettysize')","import pretty from 'prettysize'","const pretty = require('prettysize')"]},{"cmd":"yarn add prettysize","imports":[]},{"cmd":"pnpm add prettysize","imports":[]}],"homepage":null,"github":"https://github.com/davglass/prettysize","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/prettysize","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/prettysize/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}