{"name":"protobuf.js","version":"0.0.19","description":"a pure javascript protocol buffer encoding implementation, written specifically for riak","main":"index.js","dependencies":{"butils":"0.0.5","wtf8":"https://github.com/lautis/wtf8/tarball/master"},"repository":{"type":"git","url":"git://github.com/nlf/protobuf.js"},"keywords":["protobuf","protocol","buffer","encode"],"author":{"name":"Nathan LaFreniere","email":"quitlahok@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nlf/protobuf.js/issues"},"_id":"protobuf.js@0.0.19","dist":{"shasum":"7b3b6754dbd62f95dad06c2e92dfaa1e1c0dfdd0","tarball":"http://registry-npm.ywwl.com/protobuf.js/download/protobuf.js-0.0.19.tgz","integrity":"sha512-yQcxLDYRvmbbwqLyIANr1Yc6bshZJX6QLqLkG1F2m+IMRnP+iaTDxu7yIPwQ1992ggPyzK8uHCWRu5VhAERi8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGLOKvEX9jQhb57/eOsi3icpeVMnUaLfXi007+xG0syQAiB45O+lYBr0op7wFKRc4/TizcqJZM3dhc56sBA4B6M8mA=="}],"size":3151,"noattachment":false,"key":"/protobuf.js/-/protobuf.js-0.0.19.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"maintainers":[{"name":"nlf","email":"quitlahok@gmail.com"}],"directories":{},"readme":"Protobuf.js\n-----------\n\nThis is a pure javascript driver for the protocol buffer encoding protocol. It supports most of the types defined by protocol buffers, including 64 bit integers which are returned as [long](https://github.com/dcodeIO/long.js) objects.\n\nWhat it does:\n=============\n\n* reads output from [proto2json](https://github.com/Sannis/node-proto2json) as a schema\n* encodes objects to buffers\n* decodes buffers to objects\n\nWhat it does not do:\n====================\n\n* make your breakfast\n\n\nUsage\n=====\n\n```javascript\nvar protobuf = require('protobuf.js');\nvar proto2json = require('node-proto2json');\nproto2json.parse(fs.readFileSync('./riak_kv.proto', 'utf8'), function (err, result) {\n    var translator = new protobuf(result);\n\n    //msg will *only* contain the protobuf encoded message, *NOT* the full riak packet\n    var msg = translator.encode('RpbGetReq', { bucket: 'test', key: 'test' });\n\n    //again, this will *only* decode the protobuf message. you have to remove the riak header yourself\n    var decoded = translator.decode('RpbGetResp', responsePacket);\n});\n\n```\n","publish_time":1386191917259,"_cnpm_publish_time":1386191917259,"dist-tags":{"latest":"1.1.2"}}