filesize.js
A lightweight, high-performance file size utility that converts bytes to human-readable strings. Zero dependencies. 100% test coverage
What XERJ indexed
Snapshot
The whole repository at commit ece1a832dd (2026-09-27). master is 33 commits ahead.
Selected work

“preserve BigInt precision above Number.MAX_SAFE_INTEGER”. 4 files, 201 lines in src, tests, openspec.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-11. Same terms as the repository. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution
filesizefilefilesystemsizesize-calculationjedeciecbits
Example questions
- How does filesize.js implement filesize?
- Where does filesize.js handle “preserve BigInt precision above Number.MAX_SAFE_INTEGER”?
- What does openspec do in filesize.js?
Inside the indexed corpus
- 75 files, 622.2 KB in total, about 8.3 KB per file.
- The selected commit changed 4 of those files (5.3%).
- Languages by size: JavaScript 100%, Shell 0%.
- On GitHub since 2012-03-02, last push 2026-10-30, 652 commits on master.
- The pin is 33 commits behind master; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported BSD-3-Clause for avoidwork/filesize.js on 2026-10-31, and the LICENSE file at commit ece1a832dd was reviewed as BSD-3-Clause. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Jason Mulligan (@avoidwork) has 1 selected repository on the hub.
Using XERJ with filesize.js
- Search an OpenAPI spec so an agent can find endpoints The hub files it under API design and specification.
- ripgrep vs a code index for coding agents: 30 tasks
- Best MCP servers for local code search in 2026, compared
- Best grep alternative for AI coding agents (2026)
The prompt
Paste it into your AI agent. It clones avoidwork/filesize.js at the pinned commit and indexes it on your machine.
Search the GitHub repository avoidwork/filesize.js with XERJ (https://hub.xerj.org/corpus/avoidwork--filesize-js). Run these in a shell, in order, and check each result before the next: 1. xerj --help (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh 2. git clone https://github.com/avoidwork/filesize.js filesize.js && git -C filesize.js checkout ece1a832dd0514c3ecebcbcc27aa8e8505587b29 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./filesize.js --url http://127.0.0.1:9200 --prefix filesize-js --progress plain 5. xerj autoindex map --url http://127.0.0.1:9200 Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt Licence: BSD-3-Clause. Keep the copyright notice and credit the authors.
Related
Jason MulliganAPI design and specification corporaSammMartins/lsdiskfaratech/trashdPrimeBuild-pc/LightCrosshair
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.