{"name":"iobuffer","version":"5.2.1","author":{"name":"Michaël Zasso"},"license":"MIT","_id":"iobuffer@5.2.1","maintainers":[{"name":"lpatiny","email":"luc@patiny.com"},{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos+npm@protonmail.com"},{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"}],"homepage":"https://github.com/image-js/iobuffer#readme","bugs":{"url":"https://github.com/image-js/iobuffer/issues"},"dist":{"shasum":"c9c2de98454ab6f47fafcfee86b451045fdc830e","tarball":"http://registry-npm.ywwl.com/iobuffer/download/iobuffer-5.2.1.tgz","fileCount":28,"integrity":"sha512-VcilIyf5iaeEEPwCdhDsVMpZuWJ94j9KYI1hQQz1z7k/m+WygYvOGc6s51sg5R4qzN2EfDGEIW9EUbTU0iJIXw==","signatures":[{"sig":"MEUCIQD1YkfcAhu0bVJ9EI+q6uN4Oh3YOEsklOuRmKuS/AGoZQIgA9MpMT2LbauYnY49OfHib+LD9AXHyEycQWIOJjt62B4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":116889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjP9swACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqCQ/+ME8jvYB13NcCMGsB2V8NV/A+dCwhkC3ZeQXK7ZIHN7PBGaJR\r\nUh0UECTrUEjX3uTJy76JUKqHOZ5eC3mTNakIUNOFWZ0h6f7+aF4oWPlk4rq7\r\nPKW+0oqKcD+YOCDJKJgcWswERzpTQeqeGIeQBIsvKby4xyAigPlozwJIjKh+\r\nUsgHLXYsG5NPEV33Eo8SKvX/txEo6YuKH+vtmM9RHXvUZ2t8lddtQyztwTI2\r\nQTERh6/Urw62qq5RYFpjpma0rqDBGYQV/d1sEyVAVSoTflv4nKfwHEigh6fX\r\nJaWVhN5N2ypLxLb3KwAeSfIy36ms1jRO4whBzdgSZyJDbFZikXpBe7zVmJEY\r\ntmDz2qhM+IRMUihRwKNG1YWC30XzBeR0rKozz3uxRZMmxGJ9Eo2Q71JXj6dD\r\nWxtvD3peSLnPkQpRn5y7KyaCM4UDv2WpYvXASvC73XFn6MuWwXud3fkg08T6\r\nWPvghk0bgk0qsSa2TRDLKBDKqYZHG29ulSEMe8mohTy01xTeWK0SlUiqyQTe\r\nOIf+UW/I9m+nkMOlByvS6VA03qYCGJOCxQKksCIl3H0hkv1w+r7Gp2qqmAWi\r\n7Hbkncc8crdJXni8aHmBR+5hkVyw22nMGrwxyJncT09hC0wuwCqEEcSJHslv\r\nemEZSnSn/spLGzO2cPnEgbup31nL+vj7bVI=\r\n=lLlM\r\n-----END PGP SIGNATURE-----\r\n","size":16380,"noattachment":false,"key":"/iobuffer/-/iobuffer-5.2.1.tgz"},"main":"./lib/IOBuffer.js","types":"./lib/IOBuffer.d.ts","module":"./lib-esm/IOBuffer.js","browser":{"./lib/text.js":"./lib/text.browser.js","./lib-esm/text.js":"./lib-esm/text.browser.js"},"gitHead":"b5216a94b54287c7d68f4d828318b88827117633","scripts":{"tsc":"npm run clean && npm run tsc-cjs && npm run tsc-esm","test":"npm run test-only && npm run eslint && npm run prettier && npm run check-types","clean":"rimraf lib lib-esm","eslint":"eslint src","prepack":"npm run tsc","tsc-cjs":"tsc --project tsconfig.cjs.json","tsc-esm":"tsc --project tsconfig.esm.json","prettier":"prettier --check src","test-only":"jest --coverage","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","prettier-write":"prettier --write src"},"_npmUser":{"name":"cheminfo-bot","email":"bot+npm-cheminfo@zakodium.com"},"repository":{"url":"git+https://github.com/image-js/iobuffer.git","type":"git"},"_npmVersion":"6.14.17","description":"Read and write binary data on ArrayBuffers","directories":{},"_nodeVersion":"14.20.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.5","eslint":"^8.4.1","rimraf":"^3.0.2","ts-jest":"^27.1.2","prettier":"^2.5.1","typescript":"^4.5.4","@types/jest":"^27.0.3","@types/node":"^17.0.0","eslint-config-cheminfo-typescript":"^10.3.0"},"_npmOperationalInternal":{"tmp":"tmp/iobuffer_5.2.1_1665129263908_0.08768982099709421","host":"s3://npm-registry-packages"},"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":1665129264123,"_cnpm_publish_time":1665129264123,"dist-tags":{"latest":"6.0.1"}}