filesize.js

A lightweight, high-performance file size utility that converts bytes to human-readable strings. Zero dependencies. 100% test coverage

A new way for AI to search for data
View on GitHub
1,712GitHub stars
652commits on master
105forks

JavaScript 100%, Shell 0% · created 2012-03-02 · last push 2026-10-30

What XERJ indexed

Snapshot

75 files · 622.2 KB

The whole repository at commit ece1a832dd (2026-09-27). master is 33 commits ahead.

Selected work

Jason Mulligan
@avoidwork

“preserve BigInt precision above Number.MAX_SAFE_INTEGER”. 4 files, 201 lines in src, tests, openspec.

Licence

The repository

BSD-3-Clause

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

BSD-3-Clause, with credit

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

Inside the indexed corpus

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

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

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.