{"name":"iobuffer","version":"3.2.0","author":{"name":"Michaël Zasso"},"license":"MIT","_id":"iobuffer@3.2.0","maintainers":[{"name":"lpatiny","email":"lpatiny@gmail.com"},{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos@live.com"}],"homepage":"https://github.com/image-js/iobuffer#readme","bugs":{"url":"https://github.com/image-js/iobuffer/issues"},"dist":{"shasum":"9234f4d2cb1042818704f07d1f5c833f41327e26","tarball":"http://registry-npm.ywwl.com/iobuffer/download/iobuffer-3.2.0.tgz","integrity":"sha512-MdcBIyJpQ2xvni1p88u1kmIAXFJIC+QGoH8Q7MNP4/EvfNBoJXavy/VCo/uRxYxEDS+8g8vIttxmyxKZtHNDaw==","signatures":[{"sig":"MEQCICUSKHWKw5zi+scmK/uqN3saLDWcY2nWuGrvz5b5OhQLAiAMa9BB9EnSH0GbwOQDDR32+cWae0kepv7tXLAbRoLX7w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":5180,"noattachment":false,"key":"/iobuffer/-/iobuffer-3.2.0.tgz"},"main":"./IOBuffer.js","_from":".","files":["IOBuffer.js"],"_shasum":"9234f4d2cb1042818704f07d1f5c833f41327e26","gitHead":"5cb32bc830e31196bc7b795a6616ae071d777265","scripts":{"test":"mocha --require should --reporter mocha-better-spec-reporter --recursive; npm run eslint","eslint":"eslint IOBuffer.js test","test-cov":"istanbul cover _mocha -- --require should --reporter dot --recursive","eslint-fix":"npm run eslint -- --fix","test-travis":"istanbul cover _mocha --report lcovonly -- --require should --reporter mocha-better-spec-reporter --recursive; npm run eslint"},"_npmUser":{"name":"targos","email":"targos@live.com"},"repository":{"url":"git+https://github.com/image-js/iobuffer.git","type":"git"},"_npmVersion":"3.10.10","description":"Read and write binary data on ArrayBuffers","directories":{},"_nodeVersion":"7.3.0","dependencies":{"utf8":"^2.1.2"},"devDependencies":{"mocha":"^3.0.2","eslint":"^3.12.1","should":"^11.1.0","istanbul":"^0.4.5","eslint-config-cheminfo":"^1.6.0","mocha-better-spec-reporter":"^3.0.0","eslint-plugin-no-only-tests":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/iobuffer-3.2.0.tgz_1482840043210_0.4163323030807078","host":"packages-18-east.internal.npmjs.com"},"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":1482840043949,"_cnpm_publish_time":1482840043949,"dist-tags":{"latest":"6.0.1"}}