{"name":"iobuffer","version":"6.0.1","license":"MIT","description":"Read and write binary data on ArrayBuffers","author":{"name":"Michaël Zasso"},"type":"module","exports":{".":"./lib/iobuffer.js"},"scripts":{"check-types":"tsc --noEmit","clean":"rimraf coverage lib","eslint":"eslint .","eslint-fix":"eslint . --fix","prepack":"npm run tsc","prettier":"prettier --check .","prettier-write":"prettier --write .","test":"npm run test-only && npm run check-types && npm run eslint && npm run prettier","test-only":"vitest run --coverage","tsc":"npm run clean && npm run tsc-build","tsc-build":"tsc --project tsconfig.build.json"},"dependencies":{},"devDependencies":{"@types/node":"^24.2.1","@vitest/coverage-v8":"^3.2.4","@zakodium/tsconfig":"^1.0.2","eslint":"^9.33.0","eslint-config-cheminfo-typescript":"^19.0.0","prettier":"^3.6.2","rimraf":"^6.0.1","typescript":"^5.9.2","vitest":"^3.2.4"},"repository":{"type":"git","url":"git+https://github.com/image-js/iobuffer.git"},"bugs":{"url":"https://github.com/image-js/iobuffer/issues"},"homepage":"https://image-js.github.io/iobuffer/","_id":"iobuffer@6.0.1","gitHead":"fe647f74599fca27a7812bdc48a4053ef808a71c","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-SZWYkWNfjIXIBYSDpXDYIgshqtbOPsi4lviawAEceR1Kqk+sHDlcQjWrzNQsii80AyBY0q5c8HCTNjqo74ul+Q==","shasum":"e550d671384362d541b5a23e1a81ed46ecab36d8","tarball":"http://registry-npm.ywwl.com/iobuffer/download/iobuffer-6.0.1.tgz","fileCount":13,"unpackedSize":70697,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD/ZicBC2C/Cs1OP8otNwkeAQ/6E8LQg9pa2rkdXVviPQIgc0lFdJYJ92gmMfC6+9cfi7w/8ORh02gIBKtSx8qhwo0="}],"size":12904,"noattachment":false,"key":"/iobuffer/-/iobuffer-6.0.1.tgz"},"_npmUser":{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"},"directories":{},"maintainers":[{"name":"lpatiny","email":"luc@patiny.com"},{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"npm@secmail.targos.dev"},{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/iobuffer_6.0.1_1755098510667_0.38276295380586034"},"_hasShrinkwrap":false,"readme":"<h3 align=\"center\">\n  <a href=\"https://www.zakodium.com\">\n    <img src=\"https://www.zakodium.com/brand/zakodium-logo-white.svg\" width=\"50\" alt=\"Zakodium logo\" />\n  </a>\n  <p>\n    Maintained by <a href=\"https://www.zakodium.com\">Zakodium</a>\n  </p>\n</h3>\n\n# iobuffer\n\n[![NPM version](https://img.shields.io/npm/v/iobuffer.svg)](https://www.npmjs.com/package/iobuffer)\n[![npm download](https://img.shields.io/npm/dm/iobuffer.svg)](https://www.npmjs.com/package/iobuffer)\n[![test coverage](https://img.shields.io/codecov/c/github/image-js/iobuffer.svg)](https://codecov.io/gh/image-js/iobuffer)\n[![license](https://img.shields.io/npm/l/iobuffer.svg)](https://github.com/image-js/iobuffer/blob/main/LICENSE)\n\nRead and write binary data in ArrayBuffers.\n\n## Installation\n\n```console\nnpm install iobuffer\n```\n\n## API\n\n### [Complete API documentation](https://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","publish_time":1755098510868,"_cnpm_publish_time":1755098510868,"dist-tags":{"latest":"6.0.1"}}