{"id":15046022,"url":"https://github.com/denosaurs/byte_type","last_synced_at":"2025-10-25T13:31:15.972Z","repository":{"id":62421945,"uuid":"341040148","full_name":"denosaurs/byte_type","owner":"denosaurs","description":"😋 A small helper module for working with different raw types in javascript","archived":false,"fork":false,"pushed_at":"2024-07-17T20:58:04.000Z","size":94,"stargazers_count":38,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-30T01:22:24.653Z","etag":null,"topics":["abi","browser","deno","encoding","ffi","raw-data","struct","typedarray","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/byte_type","language":"TypeScript","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/denosaurs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"open_collective":"denosaurs","github":"denosaurs"}},"created_at":"2021-02-22T00:55:50.000Z","updated_at":"2024-08-13T01:48:43.000Z","dependencies_parsed_at":"2023-02-10T12:31:49.723Z","dependency_job_id":"de6768e5-e52a-4608-b5c1-f6efde84bdb2","html_url":"https://github.com/denosaurs/byte_type","commit_stats":{"total_commits":45,"total_committers":6,"mean_commits":7.5,"dds":0.5111111111111111,"last_synced_commit":"144ab85292e3cda7030dcd233513ba3869def80d"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fbyte_type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fbyte_type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fbyte_type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fbyte_type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denosaurs","download_url":"https://codeload.github.com/denosaurs/byte_type/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238147596,"owners_count":19424291,"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":["abi","browser","deno","encoding","ffi","raw-data","struct","typedarray","typescript"],"created_at":"2024-09-24T20:52:36.246Z","updated_at":"2025-10-25T13:31:15.553Z","avatar_url":"https://github.com/denosaurs.png","language":"TypeScript","funding_links":["https://opencollective.com/denosaurs","https://github.com/sponsors/denosaurs"],"categories":[],"sub_categories":[],"readme":"# byte_type\n\n[![Tags](https://img.shields.io/github/release/denosaurs/byte_type)](https://github.com/denosaurs/byte_type/releases)\n[![Checks](https://img.shields.io/github/actions/workflow/status/denosaurs/byte_type/checks.yml?branch=main)](https://github.com/denosaurs/byte_type/actions)\n[![License](https://img.shields.io/github/license/denosaurs/byte_type)](https://github.com/denosaurs/byte_type/blob/master/LICENSE)\n\n`byte_type` is a small helper module for efficiently working with different raw\ntypes represented as a bunch of bytes. Now with performance being close to\nnative js performance and ergonomic interfaces!\n\n## Usage\n\n```ts\nimport { Struct, u32, u8 } from \"https://deno.land/x/byte_type/mod.ts\";\n\nconst buffer = new ArrayBuffer(8);\nconst dt = new DataView(buffer);\n\nconst struct = new Struct({ \"b\": u8, \"a\": u32 });\n\nstruct.write({ b: 8, a: 32 }, dt);\nconsole.log(struct.read(dt));\nconsole.log(buffer);\n\n// Output:\n// { b: 8, a: 32 }\n// ArrayBuffer {\n//   [Uint8Contents]: \u003c08 00 00 00 20 00 00 00\u003e,\n//   byteLength: 8\n// }\n```\n\n## Maintainers\n\n- Elias Sjögreen ([@eliassjogreen](https://github.com/eliassjogreen))\n- Dean Srebnik ([@load1n9](https://github.com/load1n9))\n- Skye ([@MierenManz](https://github.com/mierenmanz))\n\n### Contribution\n\nPull request, issues and feedback are very welcome. Code style is formatted with\n`deno fmt` and commit messages are done following Conventional Commits spec.\n\n### Licence\n\nCopyright 2021-2024, the denosaurs team. All rights reserved. MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fbyte_type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenosaurs%2Fbyte_type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fbyte_type/lists"}