{"library":"filesize","type":"library","category":null,"description":"The `filesize` library is a lightweight, high-performance JavaScript utility designed to convert byte values into human-readable strings, such as \"1.02 kB\" or \"1 MiB\". Currently at version 11.0.15, it emphasizes reliability and efficiency with zero external dependencies and 100% test coverage. Key differentiators include full TypeScript support, robust internationalization via the `Intl` API, `BigInt` compatibility for extremely large numbers, and support for multiple unit standards (SI, IEC, JEDEC). It offers a functional API with partial application for creating reusable formatters and is fully compatible with both Node.js and browser environments. While a specific release cadence isn't published, the project appears actively maintained with regular updates.","language":"javascript","status":"active","version":"11.0.15","tags":["javascript","file","filesize","size","readable","file system","bytes","diff","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install filesize","imports":["import { filesize } from 'filesize';","import { partial } from 'filesize';","import type { FileSizeOptions } from 'filesize';"]},{"cmd":"yarn add filesize","imports":[]},{"cmd":"pnpm add filesize","imports":[]}],"homepage":"https://filesizejs.com","github":"https://github.com/avoidwork/filesize.js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/filesize","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/filesize/compatibility"}}