{"id":19509553,"url":"https://github.com/raspi/heksa","last_synced_at":"2025-04-26T03:31:57.040Z","repository":{"id":43042367,"uuid":"230705690","full_name":"raspi/heksa","owner":"raspi","description":"CLI hex dumper with colors","archived":false,"fork":false,"pushed_at":"2023-04-03T06:45:10.000Z","size":963,"stargazers_count":151,"open_issues_count":7,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-04T07:23:31.079Z","etag":null,"topics":["binary","command-line-tool","dumper","file-format","go","golang","hacktoberfest","hex","hexadecimal","reverse-engineering"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raspi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2019-12-29T05:09:09.000Z","updated_at":"2025-01-18T23:55:23.000Z","dependencies_parsed_at":"2024-06-18T22:50:50.326Z","dependency_job_id":"f7df8453-ffa4-4b06-977e-7b71de532be1","html_url":"https://github.com/raspi/heksa","commit_stats":{"total_commits":263,"total_committers":2,"mean_commits":131.5,"dds":"0.12167300380228141","last_synced_commit":"e3d2d3c90189aed8068220d211cbba3b6895e8ba"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspi%2Fheksa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspi%2Fheksa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspi%2Fheksa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspi%2Fheksa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raspi","download_url":"https://codeload.github.com/raspi/heksa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250926824,"owners_count":21509044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["binary","command-line-tool","dumper","file-format","go","golang","hacktoberfest","hex","hexadecimal","reverse-engineering"],"created_at":"2024-11-10T23:12:22.875Z","updated_at":"2025-04-26T03:31:55.951Z","avatar_url":"https://github.com/raspi.png","language":"Go","funding_links":[],"categories":["Hex Viewers/Dumpers"],"sub_categories":[],"readme":"# heksa\n\n![Screenshot](https://github.com/raspi/heksa/blob/master/_assets/screenshot.png)\n\n![GitHub All Releases](https://img.shields.io/github/downloads/raspi/heksa/total?style=for-the-badge)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/raspi/heksa?style=for-the-badge)\n![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/raspi/heksa?style=for-the-badge)\n[![Go Report Card](https://goreportcard.com/badge/github.com/raspi/heksa)](https://goreportcard.com/report/github.com/raspi/heksa)\n\n[![Packaging status](https://repology.org/badge/vertical-allrepos/heksa.svg)](https://repology.org/project/heksa/versions)\n\nHex dumper with colors\n\n## Features\n\n* [ANSI colors](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors) for different byte groups such as \n  * Printable: A-Z, a-z, 0-9\n  * Spaces: space, tab, new line\n  * Special: 0x00, 0xFF\n* Output multiple formats at once ([hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal), [decimal](https://en.wikipedia.org/wiki/Decimal), [octal](https://en.wikipedia.org/wiki/Octal), [bits](https://en.wikipedia.org/wiki/Binary_number) or special combination formats)\n* Multiple offset formats (hexadecimal, decimal, octal, percentage)\n  * First one is displayed on left side and second one on the right side\n* Read only N bytes\n* Seek to given offset\n  * also reads from end of file when using minus sign\n* Seek and limit supports \n  * Prefixes hex (`0x`), octal (`0o`) and binary (`0b`)\n  * Units (KB, KiB, MB, MiB, GB, GiB, TB, TiB)\n* Print relative offset starting from zero if seeking a file\n* Read from [stdin](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin))\n\n![Screenshot](https://github.com/raspi/heksa/blob/master/_assets/screenshot2.png)\n\n## heksa --help\n\n```\nheksa - hex file dumper v1.14.0 - (2021-05-18T16:20:59+03:00)\n(c) Pekka Järvinen 2019- [ https://github.com/raspi/heksa ]\nSYNOPSIS:\n    heksa [--format|-f \u003cfmt1,fmt2,..\u003e] [--help|-h|-?]\n          [--limit|-l \u003c[prefix]bytes[unit]\u003e] [--offset-format|-o \u003cfmt1[,fmt2]\u003e]\n          [--print-relative-offset|-r] [--seek|-s \u003c[prefix]offset[unit]\u003e]\n          [--splitter|-S \u003csize\u003e] [--version] [--width|-w \u003c[prefix]width\u003e]\n          \u003cfilename\u003e or STDIN\n\nOPTIONS:\n    --format|-f \u003cfmt1,fmt2,..\u003e          One or multiple of: asc, bit, bitwasc, bitwdec, bitwhex, blk, dec, decwasc, hex, hexwasc, oct (default: \"hex,asc\")\n\n    --help|-h|-?                        Show this help (default: false)\n\n    --limit|-l \u003c[prefix]bytes[unit]\u003e    Read only N bytes (0 = no limit). See NOTES. (default: \"0\")\n\n    --offset-format|-o \u003cfmt1[,fmt2]\u003e    One or two of: dec, hex, humiec, humsi, oct, per, no, ''.\n                                        First one is displayed on the left side and second one on right side after formatters. (default: \"hex\")\n\n    --print-relative-offset|-r          Print relative offset(s) starting from 0 (file only) (default: false)\n\n    --seek|-s \u003c[prefix]offset[unit]\u003e    Start reading from certain offset. See NOTES. (default: \"0\")\n\n    --splitter|-S \u003csize\u003e                Insert visual splitter every N bytes. Zero (0) disables. (default: 8)\n\n    --version                           Show version information (default: false)\n\n    --width|-w \u003c[prefix]width\u003e          Width. See NOTES. (default: \"16\")\n\n\nNOTES:\n    - You can use prefixes for seek, limit and width. 0x = hex, 0b = binary, 0o = octal\n    - Use '--seek \\-1234' for seeking from end of file\n    - Limit and seek parameters supports units (KB, KiB, MB, MiB, GB, GiB, TB, TiB)\n    - --print-relative-offset can be used when seeking to certain offset to also print extra offset position starting from zero\n    - Offset formatters:\n      - Disable formatter output with 'no' or ''\n      - 'humiec' (IEC: 1024 B) and 'humsi' (SI: 1000 B) displays offset in human form (n KiB/KB)\n    - Formatters:\n      - 'blk' can be used to print simple color blocks which helps to visualize where data vs. human readable strings are\n\nEXAMPLES:\n    heksa -f hex,asc,bit foo.dat\n    heksa -o hex,per -f hex,asc foo.dat\n    heksa -o hex -f hex,asc,bit foo.dat\n    heksa -o no -f bit foo.dat\n    heksa -l 0x1024 foo.dat\n    heksa -s 0b1010 foo.dat\n    heksa -s 4321KiB foo.dat\n    heksa -w 8 foo.dat\n    echo \"test\" | heksa\n```\n\n## Requirements\n\n* Terminal with ANSI color support\n  * [KDE](https://kde.org/)'s [Konsole](https://konsole.kde.org/) is currently used for development\n* Operating system\n  * [GNU/Linux](https://www.gnu.org/distros/distros.html)\n    * x64 arm arm64 ppc64 ppc64le\n  * [Microsoft Windows](https://www.microsoft.com/en-us/windows)\n    * x64\n  * [Darwin](https://www.apple.com/macos/) (Apple Mac)\n    * x64\n  * [FreeBSD](https://www.freebsd.org/)\n    * x64 arm\n  * [NetBSD](https://www.netbsd.org/)\n    * x64 arm\n  * [OpenBSD](https://www.openbsd.org/)\n    * x64 arm arm64\n  * Other OSes supported by [Go](https://golang.org)\n    * For full list, see: https://go.dev/doc/install/source#environment\n\n## Get source\n\n    git clone https://github.com/raspi/heksa\n\n## Contributing and helping with the project\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) and [current issues](https://github.com/raspi/heksa/issues) that might need help.\n\n## Developing\n\n1. Make changes\n1. `make build` or just `go build .`\n\n## Releasing new version:\n\nRequirements:\n\n* `upx` for compressing executables\n\n1. Create new version tag\n1. `make release`\n\nIf there's a lot of visual changes you can take new screenshots with `screenshot.sh` script in [_assets](_assets) directory\n\n## Is it any good?\n\nYes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraspi%2Fheksa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraspi%2Fheksa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraspi%2Fheksa/lists"}