{"id":13528292,"url":"https://github.com/image-js/iobuffer","last_synced_at":"2025-04-05T11:04:28.790Z","repository":{"id":41445845,"uuid":"43024014","full_name":"image-js/iobuffer","owner":"image-js","description":"Read and write binary data in ArrayBuffers","archived":false,"fork":false,"pushed_at":"2025-03-04T16:12:36.000Z","size":1786,"stargazers_count":45,"open_issues_count":7,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-29T10:32:06.454Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"http://image-js.github.io/iobuffer/","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/image-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2015-09-23T20:06:58.000Z","updated_at":"2025-03-04T16:11:51.000Z","dependencies_parsed_at":"2024-06-18T15:14:22.999Z","dependency_job_id":"79250762-1c48-4fff-b5e1-5dd0d6e6d8c3","html_url":"https://github.com/image-js/iobuffer","commit_stats":{"total_commits":136,"total_committers":13,"mean_commits":"10.461538461538462","dds":0.5147058823529411,"last_synced_commit":"0607a9579bd32ea75d2e21b860fdc253bbc6a5ef"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fiobuffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fiobuffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fiobuffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fiobuffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/image-js","download_url":"https://codeload.github.com/image-js/iobuffer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325694,"owners_count":20920714,"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":["hacktoberfest"],"created_at":"2024-08-01T06:02:24.035Z","updated_at":"2025-04-05T11:04:28.726Z","avatar_url":"https://github.com/image-js.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# iobuffer\n\nRead and write binary data in ArrayBuffers.\n\n\u003ch3 align=\"center\"\u003e\n\n  \u003ca href=\"https://www.zakodium.com\"\u003e\n    \u003cimg src=\"https://www.zakodium.com/brand/zakodium-logo-white.svg\" width=\"50\" alt=\"Zakodium logo\" /\u003e\n  \u003c/a\u003e\n\n  \u003cp\u003e\n    Maintained by \u003ca href=\"https://www.zakodium.com\"\u003eZakodium\u003c/a\u003e\n  \u003c/p\u003e\n  \n  [![NPM version][npm-image]][npm-url]\n  [![build status][ci-image]][ci-url]\n  [![Test coverage][codecov-image]][codecov-url]\n  [![npm download][download-image]][download-url]\n\n\u003c/h3\u003e\n\n## Installation\n\n```console\nnpm i iobuffer\n```\n\n## API\n\nComplete [API documentation](http://image-js.github.io/iobuffer/)\n\n## Usage example\n\n```js\nconst { IOBuffer } = require('iobuffer');\n\nconst io = new IOBuffer();\n// Pointer offset is 0\nio.writeChars('Hello world') // Write 11 chars, pointer offset now 11\n  .writeUint32(42) // Write 32-bit int (default is little-endian), pointer offset now 15\n  .setBigEndian() // Switch to big-endian mode\n  .writeUint32(24) // Write another 32-bit int, but big-endian, pointer offset now 19\n  .mark() // Bookmark current pointer offset (19)\n  .skip(2) // Pointer offset now 21\n  .writeBoolean(true) // Write 0xff, pointer offset now 22\n  .reset() // Go to bookmarked pointer offset, pointer offset now 19\n  .setLittleEndian() // Go back to little endian mode\n  .writeUint16(18) // Write 16-bit unsigned integer in the previously skipped 2 bytes, pointer offset now 21\n  .rewind() // Pointer offset back to 0\n  .toArray(); // Get a Uint8Array over the written part [0-21] of the internal ArrayBuffer\n```\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/iobuffer.svg\n[npm-url]: https://www.npmjs.com/package/iobuffer\n[ci-image]: https://github.com/image-js/iobuffer/workflows/Node.js%20CI/badge.svg?branch=main\n[ci-url]: https://github.com/image-js/iobuffer/actions?query=workflow%3A%22Node.js+CI%22\n[codecov-image]: https://img.shields.io/codecov/c/github/image-js/iobuffer.svg\n[codecov-url]: https://codecov.io/gh/image-js/iobuffer\n[download-image]: https://img.shields.io/npm/dm/iobuffer.svg\n[download-url]: https://www.npmjs.com/package/iobuffer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimage-js%2Fiobuffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimage-js%2Fiobuffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimage-js%2Fiobuffer/lists"}