{"name":"iobuffer","version":"5.0.1","author":{"name":"Michaël Zasso"},"license":"MIT","_id":"iobuffer@5.0.1","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":"bce1f3818928953a5108958f6f47fe580d727e8e","tarball":"http://registry-npm.ywwl.com/iobuffer/download/iobuffer-5.0.1.tgz","fileCount":23,"integrity":"sha512-FgXMaUah8US0Dagoio7MJnntt/YAj2fnalPMMARRVECksH/odwB2Wgzh+mAh3AJlilGqzrRNhuPu6Z9FOOl7iw==","signatures":[{"sig":"MEUCIQCwpp4qedZnYflhVOERkNF6vzLpcd+ZcUPhmyyWDIweWgIgGe76NdasHw7lGngAMyKFfvV92bIRvgftqpMJ8L4bEOM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82549,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdypJ9CRA9TVsSAnZWagAABgoP/0HNJgvljBhFSL9tx4Nx\n1yG2KnT/OaScV7Bne5VejSjy4phemJwYfECohuOjt0bZFPempH8rRxaYRsij\nnamzZhaYo7F+Fbp2Oi9t9Yj69OFDsNBkXJNlU/6dHmwZ8veRIwd5/i5arlXL\nzWzEE+QWGewrZC24WO2zFmeB5XOVeNKvB2pM1YceaAkH4vXWD97WMwaIGwrD\nfL8f0c7Mbfomc0rKgQcox2b273WVu4wW+JXDq2ZEQeo/pdTioepxjZIbUOR+\nEOkRRiY8vChEGSEj5wxm82zHXRy2YofTx1Sr1JFJK/Q1tYyPClxrtVGho8ZL\n1N/y4qLtWNVNyAg7mwMtSliTL31zbzPgrdNhHLr2TradpWiUiQtSl+Xbi6lK\nQ5zhVboXaIDxI4qFZaIS9bAD6Zhanjyc/ULrdYQxlJkE8rz/3YS9cL8twwOL\nLZTDFtntzRcLJ4CgUVQq+BrC15IGT+9s1fHN3J3Bffy13WHXvb9xtWEf+A+9\nPeLEcyidiTIlX7Gw6FcYLpMHwmJXV5Oq5nylSINVs5f3W2XVFOfDzdYzucH2\ncLiNc2uqldRr+lb7Dhb2iIbcluORCipW9qXaaP1g1JbhpJZrGNh0NiqSTNoc\nVGHPSuemQaMlFNIhzainiPsj/5jpcnLd6OL/lbRs9fpeoyu9VrqU0VGI6gtK\nRTRF\r\n=+f0a\r\n-----END PGP SIGNATURE-----\r\n","size":13399,"noattachment":false,"key":"/iobuffer/-/iobuffer-5.0.1.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":"cf8570cfb4b4b7f7584507450c7a0a2d09e1655a","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.1_1573556861214_0.5728867909468414","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":1573556861334,"_cnpm_publish_time":1573556861334,"dist-tags":{"latest":"6.0.1"}}