{"name":"bytebuffer","version":"1.3.2","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"ByteBuffer.js: A Java-like, Netty-inspired ByteBuffer implementation using typed arrays.","main":"ByteBuffer.js","repository":{"type":"git","url":"https://github.com/dcodeIO/ByteBuffer.js.git"},"bugs":{"url":"https://github.com/dcodeIO/ByteBuffer.js/issues"},"keywords":["net","array","buffer","arraybuffer","typed array","bytebuffer","json","websocket","webrtc"],"dependencies":{"long":">=1.1.2"},"devDependencies":{"nodeunit":">=0.7","preprocessor":">=1.0.2","closurecompiler":">=1.1"},"license":"Apache License, Version 2.0","engines":{"node":">=0.8"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script build && npm run-script compile && npm run-script noexpose && npm test && npm run-script jsdoc","build":"preprocess src/ByteBuffer.js src/ > ByteBuffer.js","compile":"ccjs ByteBuffer.js --create_source_map=ByteBuffer.min.map --compilation_level=ADVANCED_OPTIMIZATIONS --externs=externs/Long.js > ByteBuffer.min.js","noexpose":"cat ByteBuffer.js | grep -v @expose > ByteBuffer.noexpose.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"bytebuffer@1.3.2","dist":{"shasum":"a8fb981afb25c8d0ec588598ba3cb12074c30596","tarball":"http://registry-npm.ywwl.com/bytebuffer/download/bytebuffer-1.3.2.tgz","integrity":"sha512-qrQ/YoFVvJsP5hU8WuPvp91gY74HtnuBYMw7DcngflVhpq46tjdIbvMxa4emqpOFgtCRuCATjQ0Vfls0B9nBfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/XYzIUq/LnCU8B7/xJDvKT9Bgu86rPWcBbSEJJQ5H5gIhAIHR8DFwg6sTjz9WU82P0ZYjfzZG+ypE8/9psSsVtp7f"}],"size":97423,"noattachment":false,"key":"/bytebuffer/-/bytebuffer-1.3.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{},"readme":"![bytebuffer.js - The swiss army knife for binary data in JavaScript.](https://raw.github.com/dcodeIO/bytebuffer.js/master/bytebuffer.png)\r\n======================================\r\nA fast and complete ByteBuffer implementation using either ArrayBuffers in the browser or node Buffers under node.js,\r\ngenerated from a single source tree through [MetaScript](https://github.com/dcodeIO/MetaScript).\r\n\r\n[![Build Status](https://travis-ci.org/dcodeIO/bytebuffer.js.svg?branch=master)](https://travis-ci.org/dcodeIO/bytebuffer.js)\r\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)\r\n\r\nFeatures\r\n--------\r\n* Three API-compatible versions:\r\n  * **bytebuffer** &nbsp; Backing buffer: ArrayBuffer, Accessor: Uint8Array\r\n  * **bytebuffer-dataview** &nbsp; Backing buffer: ArrayBuffer, Accessor: DataView\r\n  * **bytebuffer-node** &nbsp; Backing buffer / Accessor: node Buffer\r\n* 8, 16, 32 and 64 bit (through [long.js](https://github.com/dcodeIO/long.js)) signed and unsigned integers\r\n* 32 and 64 bit floats\r\n* Varints as used in protobuf (32 and 64 bit, zig-zag)\r\n* [Base64](https://github.com/dcodeIO/lxiv), [utf8](https://github.com/dcodeIO/utfx), binary, hex and debug encodings\r\n* Handy string and debugging utilities\r\n* Big and little endianness\r\n* Relative and absolute zero-copy operations wherever possible\r\n* Transparent resizing when using unknown-length data\r\n* Chaining of all operations that do not return a specific value\r\n* Slicing, appending, prepending, reversing, flip, mark, reset, etc.\r\n\r\nUsage\r\n-----\r\nThe library is compatible with CommonJS and AMD loaders and is exposed globally as `dcodeIO.ByteBuffer` if neither is\r\navailable.\r\n\r\n```javascript\r\nvar ByteBuffer = require(\"bytebuffer\");\r\n\r\nvar bb = new ByteBuffer()\r\n            .writeIString(\"Hello world!\")\r\n            .flip();\r\nconsole.log(bb.readIString()+\" from bytebuffer.js\");\r\n```\r\n\r\nIn the browser, 64 bit integer support is optional and present only if [Long.js](https://github.com/dcodeIO/long.js) has\r\nbeen loaded prior to bytebuffer.js.\r\n\r\nAPI\r\n---\r\n* [View the API documentation](https://github.com/dcodeIO/bytebuffer.js/wiki/API)\r\n* [Check the wiki](https://github.com/dcodeIO/bytebuffer.js/wiki)\r\n\r\nDownloads\r\n---------\r\n* [Distributions](https://github.com/dcodeIO/bytebuffer.js/tree/master/dist)\r\n* [ZIP-Archive](https://github.com/dcodeIO/bytebuffer.js/archive/master.zip)\r\n* [Tarball](https://github.com/dcodeIO/bytebuffer.js/tarball/master)\r\n\r\nSupport for IE<10, FF<15, Chrome<9 etc.\r\n---------------------------------------\r\n* Use bytebuffer-dataview with a polyfill ([see](https://github.com/dcodeIO/bytebuffer.js/tree/master/dist))\r\n\r\nContributors\r\n------------\r\n[Dretch](https://github.com/Dretch) (IE8 compatibility)\r\n\r\nLicense\r\n-------\r\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)\r\n","publish_time":1368361768791,"_cnpm_publish_time":1368361768791,"dist-tags":{"latest":"5.0.1"}}