{"id":16534004,"url":"https://github.com/martindisch/format","last_synced_at":"2026-05-23T16:37:41.841Z","repository":{"id":75443179,"uuid":"207576293","full_name":"martindisch/format","owner":"martindisch","description":"A small tool for formatting bytes in various input formats as arrays or CoAP messages","archived":false,"fork":false,"pushed_at":"2019-10-01T09:35:48.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T09:37:54.488Z","etag":null,"topics":["coap","hexadecimal-format","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martindisch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-3RD-PARTY","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-09-10T14:05:47.000Z","updated_at":"2019-10-01T09:35:50.000Z","dependencies_parsed_at":"2023-06-03T04:09:50.904Z","dependency_job_id":null,"html_url":"https://github.com/martindisch/format","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martindisch%2Fformat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martindisch%2Fformat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martindisch%2Fformat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martindisch%2Fformat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martindisch","download_url":"https://codeload.github.com/martindisch/format/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241677581,"owners_count":20001674,"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":["coap","hexadecimal-format","rust"],"created_at":"2024-10-11T18:16:33.281Z","updated_at":"2026-05-23T16:37:36.823Z","avatar_url":"https://github.com/martindisch.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# format\nA small tool for formatting bytes in various input formats as arrays or CoAP\nmessages.\n\n## Usage\nEnter your bytes either as an array of numbers or as a hexstring and see them\nformatted as an array of hexadecimals, or when using `-c/--coap` as the debug\nrepresentation of a CoAP message.\n\nFormat an array of decimals as an array of hexadecimals\n```console\n$ format \"[72, 101, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]\"\n[0x48, 0x65, 0x6C, 0x6F, 0x2C, 0x20, 0x77, 0x6F, 0x72, 0x6C, 0x64, 0x21]\n```\n\nFormat a hexstring as a CoAP message\n```console\n$ format -c 44015d1f00003974396c6f63616c686f737483747631\nPacket {\n    header: Header {\n        ver_type_tkl: 100,\n        code: Response(\n            Content,\n        ),\n        message_id: 23839,\n    },\n    token: [\n        0,\n        0,\n        57,\n        116,\n    ],\n    options: {},\n    payload: [\n        72,\n        101,\n        108,\n        108,\n        111,\n        32,\n        87,\n        111,\n        114,\n        108,\n        100,\n        33,\n    ],\n}\n```\n\n## License\nLicensed under either of\n\n * [Apache License, Version 2.0](LICENSE-APACHE)\n * [MIT license](LICENSE-MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartindisch%2Fformat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartindisch%2Fformat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartindisch%2Fformat/lists"}