{"name":"iobuffer","version":"5.0.2","author":{"name":"Michaël Zasso"},"license":"MIT","_id":"iobuffer@5.0.2","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":"90f6ead2afd24cc9d2f2befbbb2a501552d70d4f","tarball":"http://registry-npm.ywwl.com/iobuffer/download/iobuffer-5.0.2.tgz","fileCount":28,"integrity":"sha512-FwwzAUZkapfHq76amLGSaEigB2nRSZR+ADc+zRcIRm2MsofDJAiIEPGbw+is/lI+kW32fM5jezmJ8dVQnd1UbA==","signatures":[{"sig":"MEQCIDLxhMhueCiiGerPKMv6Ox+MVwSwY6RTckQv857P0kDtAiB6Gu4wR0MAWJgZkSA79z3WiuRA6tHZdKgqG0aw/N6jYQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":108324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyprUCRA9TVsSAnZWagAAQxYP/3qpArbtV4qKLsV8A6xJ\n+SapeVsjePlG03bNzyqYtyKRBhvOPBA4wNdjEmQXExfCdFuWC1QieFR5GL98\nlbFurQqug4w71rXlA6G4lOGrwWMnhKfC0hgU7QMHzixh26b6OhS0jJHJLjnk\nP9/32gPYq1nLD+1lsObF0uuXIWQcxwTF2i+dCdnNZNiImorSPtKi8NAuFhzB\nmm+qRx7suU/rGO+7vUrCUcDfTQFT5oxw1MBc3fnKaL6Z+eC2Pl69vuXTJjYH\ngM1SubbRgx04VGiwEhhGuIUUyQzvYTWbuGfHGjyzCGUnmoUfF1DeKJWVot6+\ncrm781eeKKOcK5SwMM+GBd5mpFNp+LpVhjWIGgxZhB8SdRFsFOQU86wxt6uq\neyhq81KbkJrY3vOcEo+0yRl/ivgw1b+HIKV5/PEkrsGe62+7ucdIQtyicC2c\ndCbO/E0RywkwEh2zr6f5+49vyR2J5vQGsGXOE0BqrNbu+VP0N21DilMslRhh\nwWPwHmnFbI9BREXpIY45SV94/hN+oytPOp/SAa2eiqAdRPQFqBFUr/6SEKaU\nK5fLAAbEnkRr13RfNmE5Xa1NAwThP566pmK/vdWZ8/a8g4I6gZTU5mTVvgFP\n3Mz9ztVqw06l8C/UbiJKI2WPv877RNd22BYnhI+6FRJ66q8Qgs84nlC5yNXb\ntpXk\r\n=aDWb\r\n-----END PGP SIGNATURE-----\r\n","size":15528,"noattachment":false,"key":"/iobuffer/-/iobuffer-5.0.2.tgz"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"./lib/IOBuffer.js","types":"./lib/IOBuffer.d.ts","module":"./lib-esm/IOBuffer.js","browser":{"./lib-esm/utf8.js":"./lib-esm/utf8.browser.js"},"gitHead":"c8c8299f9a80ee6dfc21db845ab999a9b5e109dd","scripts":{"tsc":"npm run clean && npm run tsc-cjs && npm run tsc-esm","test":"npm run test-coverage && npm run eslint","clean":"rimraf lib lib-esm","eslint":"eslint src --ext ts","tsc-cjs":"tsc --project tsconfig.cjs.json","tsc-esm":"tsc --project tsconfig.esm.json","test-only":"jest","eslint-fix":"npm run eslint -- --fix","test-coverage":"npm run test-only -- --coverage","prepublishOnly":"npm run tsc"},"_npmUser":{"name":"targos","email":"targos+npm@protonmail.com"},"cheminfo":{"docs":{"tsEntry":"src/IOBuffer.ts"}},"prettier":{"semi":true,"tabWidth":2,"arrowParens":"always","singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/image-js/iobuffer.git","type":"git"},"_npmVersion":"6.12.1","description":"Read and write binary data on ArrayBuffers","directories":{},"_nodeVersion":"13.1.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","eslint":"^6.6.0","rimraf":"^3.0.0","ts-jest":"^24.1.0","prettier":"^1.19.1","typescript":"^3.7.2","@types/jest":"^24.0.22","@types/node":"^12.12.7","eslint-plugin-jest":"^23.0.3","eslint-plugin-import":"^2.18.2","eslint-config-cheminfo":"^2.0.4","eslint-plugin-prettier":"^3.1.1","@typescript-eslint/parser":"^2.7.0","@typescript-eslint/eslint-plugin":"^2.7.0","eslint-config-cheminfo-typescript":"^4.1.2"},"_npmOperationalInternal":{"tmp":"tmp/iobuffer_5.0.2_1573558995984_0.3087077748921607","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":1573558996096,"_cnpm_publish_time":1573558996096,"dist-tags":{"latest":"6.0.1"}}