{"_id":"@ecency/bytebuffer","_rev":"2-e21f379ea0a140a85500c3a55b0a4a97","name":"@ecency/bytebuffer","dist-tags":{"latest":"6.0.0"},"versions":{"6.0.0":{"name":"@ecency/bytebuffer","version":"6.0.0","keywords":["net","array","buffer","arraybuffer","typed array","bytebuffer","json","websocket","webrtc"],"author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"license":"Apache-2.0","_id":"@ecency/bytebuffer@6.0.0","maintainers":[{"name":"feruzm","email":"feruz@ecency.com"},{"name":"talhasch","email":"talhabugrabulut@gmail.com"}],"homepage":"https://github.com/dcodeIO/bytebuffer.js#readme","bugs":{"url":"https://github.com/dcodeIO/bytebuffer.js/issues"},"dist":{"shasum":"8d4f98bf5777f18e056c85899a9bdb37119cc62a","tarball":"https://registry.npmjs.org/@ecency/bytebuffer/-/bytebuffer-6.0.0.tgz","fileCount":4,"integrity":"sha512-rGPjzD7a7cPtMHjpJEtLMt/RmqX8XK25tN5qjuu9iaDMK/Ril86CecU5DN/TXEMUQMY1p6b2cVvKBLTdFMr2DA==","signatures":[{"sig":"MEUCIQDByFMFjB+u0Fd2tZhXpfrNI9r9QX3jGVLykKYmBcYgOAIgR5pcQchrAT3xt8fflMGJgINdDffX8pctx1Hs3sNzwhU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":158873},"main":"dist/bytebuffer-node.js","engines":{"node":">=6"},"gitHead":"4d64ca8c1a5d3853d859be458d46f4a9a0211622","scripts":{"make":"npm run-script build && npm test","test":"node node_modules/testjs/bin/testjs tests/suite.js","build":"node scripts/build.js","prepublish":"npm test"},"_npmUser":{"name":"feruzm","email":"feruz@ecency.com"},"repository":{"url":"git+https://github.com/dcodeIO/bytebuffer.js.git","type":"git"},"_npmVersion":"8.11.0","description":"The swiss army knife for binary data in JavaScript.","directories":{},"_nodeVersion":"16.15.1","dependencies":{"long":"~3"},"_hasShrinkwrap":false,"devDependencies":{"lxiv":"~0.2","utfx":"^1.0.1","testjs":"~1","metascript":"~0","pretty-hrtime":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bytebuffer_6.0.0_1723006534502_0.37828985282233063","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-08-07T04:55:34.423Z","modified":"2025-12-14T18:54:34.689Z","6.0.0":"2024-08-07T04:55:34.689Z"},"bugs":{"url":"https://github.com/dcodeIO/bytebuffer.js/issues"},"author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"license":"Apache-2.0","homepage":"https://github.com/dcodeIO/bytebuffer.js#readme","keywords":["net","array","buffer","arraybuffer","typed array","bytebuffer","json","websocket","webrtc"],"repository":{"url":"git+https://github.com/dcodeIO/bytebuffer.js.git","type":"git"},"description":"The swiss army knife for binary data in JavaScript.","maintainers":[{"email":"feruz@ecency.com","name":"feruzm"}],"readme":"## Fork Notes:\n\n- Based off of upstream master instead of upstream latest release, because tests were broken on the latest release.\n- Removed `new Buffer()` usage.\n- Dropped super old Node version support to use `Buffer.alloc`/`Buffer.from`.\n- Removed minified/gzipped builds.\n- Added `files` to `package.json` for smaller package size.\n\n---\n\n![bytebuffer.js - The swiss army knife for binary data in JavaScript.](https://raw.github.com/dcodeIO/bytebuffer.js/master/bytebuffer.png)\n======================================\nA fast and complete ByteBuffer implementation using either ArrayBuffers in the browser or node Buffers under node.js,\ngenerated from a single source tree through [MetaScript](https://github.com/dcodeIO/MetaScript).\n\n[![Build Status](https://travis-ci.org/dcodeIO/bytebuffer.js.svg?branch=master)](https://travis-ci.org/dcodeIO/bytebuffer.js)\n[![Donate](https://raw.githubusercontent.com/dcodeIO/bytebuffer.js/master/donate.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dcode%40dcode.io&item_name=%3C3%20bytebuffer.js)\n\nFeatures\n--------\n* Three API-compatible versions:\n  * **bytebuffer** &nbsp; Backing buffer: ArrayBuffer, Accessor: Uint8Array\n  * **bytebuffer-dataview** &nbsp; Backing buffer: ArrayBuffer, Accessor: DataView\n  * **bytebuffer-node** &nbsp; Backing buffer / Accessor: node Buffer\n* 8, 16, 32 and 64 bit (through [long.js](https://github.com/dcodeIO/long.js)) signed and unsigned integers\n* 32 and 64 bit floats\n* Varints as used in protobuf (32 and 64 bit, zig-zag)\n* [Base64](https://github.com/dcodeIO/lxiv), [utf8](https://github.com/dcodeIO/utfx), binary, hex and debug encodings\n* Handy string and debugging utilities\n* Big and little endianness\n* Relative and absolute zero-copy operations wherever possible\n* Transparent resizing when using unknown-length data\n* Chaining of all operations that do not return a specific value\n* Slicing, appending, prepending, reversing, flip, mark, reset, etc.\n\nUsage\n-----\nThe library is compatible with CommonJS and AMD loaders and is exposed globally as `dcodeIO.ByteBuffer` if neither is\navailable.\n\n```javascript\nvar ByteBuffer = require(\"bytebuffer\");\n\nvar bb = new ByteBuffer()\n            .writeIString(\"Hello world!\")\n            .flip();\nconsole.log(bb.readIString()+\" from bytebuffer.js\");\n```\n\nIn the browser, 64 bit integer support is optional and present only if [Long.js](https://github.com/dcodeIO/long.js) has\nbeen loaded prior to bytebuffer.js.\n\nAPI\n---\n* [View the API documentation](https://github.com/dcodeIO/bytebuffer.js/wiki/API)\n* [Check the wiki](https://github.com/dcodeIO/bytebuffer.js/wiki)\n\nDownloads\n---------\n* [Distributions](https://github.com/dcodeIO/bytebuffer.js/tree/master/dist)\n* [ZIP-Archive](https://github.com/dcodeIO/bytebuffer.js/archive/master.zip)\n* [Tarball](https://github.com/dcodeIO/bytebuffer.js/tarball/master)\n\nSupport for IE<10, FF<15, Chrome<9 etc.\n---------------------------------------\n* Use bytebuffer-dataview with a polyfill ([see](https://github.com/dcodeIO/bytebuffer.js/tree/master/dist))\n\nContributors\n------------\n[Dretch](https://github.com/Dretch) (IE8 compatibility)\n\nLicense\n-------\n**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) - Logo derived from [W3C HTML5 Logos](http://www.w3.org/html/logo/) (CC A 3.0)\n","readmeFilename":"README.md"}