{"id":16833522,"url":"https://github.com/ole/hexhexhex","last_synced_at":"2026-03-17T15:42:28.133Z","repository":{"id":136294810,"uuid":"224701989","full_name":"ole/HexHexHex","owner":"ole","description":"A parser for the Intel Hexadecimal Object File Format (.hex), written in Swift.","archived":false,"fork":false,"pushed_at":"2021-05-03T10:54:22.000Z","size":18,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T04:34:59.867Z","etag":null,"topics":["file-format","intel-hex","parser","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/ole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2019-11-28T17:35:21.000Z","updated_at":"2023-04-25T12:55:49.000Z","dependencies_parsed_at":"2023-07-24T06:45:07.071Z","dependency_job_id":null,"html_url":"https://github.com/ole/HexHexHex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ole/HexHexHex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FHexHexHex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FHexHexHex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FHexHexHex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FHexHexHex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ole","download_url":"https://codeload.github.com/ole/HexHexHex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FHexHexHex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30626822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T14:16:03.965Z","status":"ssl_error","status_checked_at":"2026-03-17T14:16:03.380Z","response_time":56,"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":["file-format","intel-hex","parser","swift"],"created_at":"2024-10-13T11:54:31.677Z","updated_at":"2026-03-17T15:42:28.115Z","avatar_url":"https://github.com/ole.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HexHexHex\n\nA parser for the [Intel Hexadecimal Object File Format (.hex)](https://en.wikipedia.org/wiki/Intel_HEX), written in Swift.\n\n## Status\n\nVery experimental and untested.\n\n![](https://github.com/ole/HexHexHex/workflows/macOS/badge.svg) ![](https://github.com/ole/HexHexHex/workflows/Linux/badge.svg)\n\n## Usage\n\n### Add HexHexHex as a Swift Package Manager dependency\n\n```\ndependencies: [\n  .package(url: \"https://github.com/ole/HexHexHex.git\", from: \"0.1.0\"),\n],\n```\n\n### Code\n\nCreating a [`HEXFile`](Sources/HexHexHex/HEXFile.swift) value from the text of a .hex file:\n\n```swift\nimport HexHexHex\n\nlet hexText = \"\"\"\n  :020000040000FA\n  :1000000025001C0C0200080C06006306590AE306D2\n  :0C00B000590A000C3000070C2600030069\n  :00000001FF\n  \"\"\"\nlet hexFile = try HEXFile(text: hexText)\n```\n\nThe `HEXFile` value contains an array of [`Record`](Sources/HexHexHex/Record.swift) values that represent the records in the .hex file:\n\n```swift\ndebugPrint(hexFile)\n/*\nHEXFile (4 records)\n  04 extended linear address – 0000\n  00 data – address: 0000, data: 25 00 1C 0C 02 00 08 0C 06 00 63 06 59 0A E3 06\n  00 data – address: 00B0, data: 59 0A 00 0C 30 00 07 0C 26 00 03 00\n  01 end of file\n */\n\n// Get all data records in the file\nlet dataRecords = hexFile.records.filter { $0.kind == .data }\nprint(dataRecords)\n\n// Print out the addresses of all data records in the file\nfor case .data(let address, _) in hexFile.records {\n  print(address)\n}\n```\n\n## Author\n\nOle Begemann, [oleb.net](https://oleb.net).\n\n## License\n\nMIT. See [LICENSE.txt](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Fhexhexhex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fole%2Fhexhexhex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Fhexhexhex/lists"}