{"name":"iobuffer","version":"6.0.0","author":{"name":"Michaël Zasso"},"license":"MIT","_id":"iobuffer@6.0.0","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"}],"homepage":"https://image-js.github.io/iobuffer/","bugs":{"url":"https://github.com/image-js/iobuffer/issues"},"dist":{"shasum":"004c1d1529fdb4438bd3460aa57d127d12a53b7c","tarball":"http://registry-npm.ywwl.com/iobuffer/download/iobuffer-6.0.0.tgz","fileCount":13,"integrity":"sha512-sEIVQ307ZoqUxFl2P1oS3G6YLzYcQbvHCdAF7bS26cnfACkpFseR6ifwSAevTf3pItPjAbUpokLam0H7ZpMxQA==","signatures":[{"sig":"MEUCIQCzGyjqGx6ubCMttlPvnP3jdK1YMlOmIe5D+DfqEuEvlwIgbl3QQJgPqvtEj6GxrLF/zC751MYBP61A2TwLiMBT8f8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70627,"size":12883,"noattachment":false,"key":"/iobuffer/-/iobuffer-6.0.0.tgz"},"type":"module","exports":"./lib/iobuffer.js","gitHead":"02b8a39ccf6178a5bca99d66113aded4c7027f90","scripts":{"tsc":"npm run clean && npm run tsc-build","test":"npm run test-only && npm run check-types && npm run eslint && npm run prettier","clean":"rimraf coverage lib","eslint":"eslint .","prepack":"npm run tsc","prettier":"prettier --check .","test-only":"vitest run --coverage","tsc-build":"tsc --project tsconfig.build.json","eslint-fix":"eslint . --fix","check-types":"tsc --noEmit","prettier-write":"prettier --write ."},"_npmUser":{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"},"repository":{"url":"git+https://github.com/image-js/iobuffer.git","type":"git"},"_npmVersion":"10.9.2","description":"Read and write binary data on ArrayBuffers","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.28.0","rimraf":"^6.0.1","vitest":"^3.1.4","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^22.15.29","@zakodium/tsconfig":"^1.0.0","@vitest/coverage-v8":"^3.1.4","eslint-config-cheminfo-typescript":"^18.0.1"},"_npmOperationalInternal":{"tmp":"tmp/iobuffer_6.0.0_1749976697577_0.0843142127308325","host":"s3://npm-registry-packages-npm-production"},"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":1749976697760,"_cnpm_publish_time":1749976697760,"dist-tags":{"latest":"6.0.1"}}