{"id":49818932,"url":"https://github.com/michael2012z/bitruler","last_synced_at":"2026-05-13T09:09:38.259Z","repository":{"id":357200836,"uuid":"1235638968","full_name":"michael2012z/bitruler","owner":"michael2012z","description":"A command-line utility for visualizing, decoding, and inspecting binary data and bit fields.","archived":false,"fork":false,"pushed_at":"2026-05-11T19:56:50.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T20:31:04.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michael2012z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-11T14:10:51.000Z","updated_at":"2026-05-11T19:56:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/michael2012z/bitruler","commit_stats":null,"previous_names":["michael2012z/bitruler"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/michael2012z/bitruler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael2012z%2Fbitruler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael2012z%2Fbitruler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael2012z%2Fbitruler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael2012z%2Fbitruler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael2012z","download_url":"https://codeload.github.com/michael2012z/bitruler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael2012z%2Fbitruler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32975278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-13T09:09:37.607Z","updated_at":"2026-05-13T09:09:38.251Z","avatar_url":"https://github.com/michael2012z.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitruler\n\n`bitruler` is a command-line utility for visualizing, decoding, and inspecting\ndata as bits, hexadecimal digits, and common numeric formats.\n\nIt prints a compact bit ruler that makes it easier to see where each nibble and\nbit position sits inside a value.\n\n## Features\n\n- Accepts unsigned integers up to `u128`.\n- Supports hexadecimal, decimal, octal, and binary input.\n- Allows underscores as digit separators.\n- Shows a visual unit ruler, hexadecimal digit art, bit groups, and bit positions.\n- Prints decoded `HEX`, `DEC`, `OCT`, `BIN`, and printable ASCII information.\n\n## Installation\n\n```sh\ncargo install bitruler\n```\n\n## Usage\n\nExample command:\n\n```sh\nbitruler 0x1234_5678_9abc\n```\n\nOutput:\n\n```text\n\nU                             16M ─┐ ┌─ 1M\nN                       256M ─┐    │ │    ┌─ 64K\nI                  4G ─┐      │    │ │    │      ┌─ 4K\nT            64G ─┐    │      │    │ │    │      │    ┌─ 256\n         1T ─┐    │    │      │    │ │    │      │    │    ┌─ 16\n    16T ┐    │    │    │      │    │ │    │      │    │    │    ┌─ 1\n\nH      █  ████ ████ █  █   ████ ████ ████ ████   ████ ████ ███  ████\nE     ██     █    █ █  █   █    █       █ █  █   █  █ █  █ █  █ █\nX      █  ████ ████ ████   ████ ████   █  ████   ████ ████ ███  █\n       █  █       █    █      █ █  █  █   █  █      █ █  █ █  █ █\n      ███ ████ ████    █   ████ ████  █   ████   ████ █  █ ███  ████\n\n     ├┬┬┤ ├┬┬┤ ├┬┬┤ ├┬┬┤   ├┬┬┤ ├┬┬┤ ├┬┬┤ ├┬┬┤   ├┬┬┤ ├┬┬┤ ├┬┬┤ ├┬┬┤\nB\nI    0001_0010_0011_0100 _ 0101_0110_0111_1000 _ 1001_1010_1011_1100\nT\n     └──┤ └──┤ └──┤ └──┤   └──┤ └──┤ └──┤ └──┤   └──┤ └──┤ └──┤ └──┤\nP       │    │    │    │      │    │    │    │      │    │    │    │\nO       │    │    │    │      │    │    │    │      │    │    │    │\nS      44   40   36   32     28   24   20   16     12    8    4    0\n\nHEX: 0x1234_5678_9abc\nDEC: 20015998343868\nOCT: 0o443212636115274\nBIN: 0b0001_0010_0011_0100_0101_0110_0111_1000_1001_1010_1011_1100\nASC: .4Vx..\n```\n\n## License\n\nThis project is licensed under the MIT License. See `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael2012z%2Fbitruler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael2012z%2Fbitruler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael2012z%2Fbitruler/lists"}