{"name":"bufferput","version":"0.1.2","description":"Pack multibyte binary values into buffers","main":"./index.js","keywords":["put","pack","binary","buffer"],"repository":{"type":"git","url":"http://github.com/gasteve/node-bufferput.git"},"scripts":{"test":"expresso"},"engines":{"node":">=0.3.0"},"license":{"type":"MIT/X11"},"bugs":{"url":"https://github.com/gasteve/node-bufferput/issues"},"_id":"bufferput@0.1.2","dist":{"shasum":"d5154c47330b47e6030b0493b10ba97dcc2c10ee","tarball":"http://registry-npm.ywwl.com/bufferput/download/bufferput-0.1.2.tgz","integrity":"sha512-/UiEn/gugSVl1jqan+2woezNgA1mNatom/E+UKN2tTkMCD289AywrOeDDbaszqNp7Fdnh1jR1f6gmxARhl/smw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCsFZJNyJDdPEE2PWwQR215sJK+r39Fe/npSxR5FePiQIgaKmJObN8rjfYplT+5sq/G4D/zvq1VugzeRKjCqfmDuA="}],"size":3377,"noattachment":false,"key":"/bufferput/-/bufferput-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"gasteve","email":"stephen@pairhome.net"},"maintainers":[{"name":"gasteve","email":"stephen@pairhome.net"}],"directories":{},"readme":"BufferPut\n===\n\nPack multibyte binary values into buffers with specific endiannesses.  Based\non the original Put by https://github.com/substack/node-put ...this version\nis intended to be a little more conventional in structure and faster\nto instantiate and easier for a VM to optimize.  Instantiation of this version\nis more that 500x faster than the original as measured on nodejs 0.10.12.\n\nInstallation\n============\n\nTo install with [npm](http://github.com/isaacs/npm):\n \n    npm install bufferput\n\nTo run the tests with [expresso](http://github.com/visionmedia/expresso):\n\n    expresso\n\nExamples\n========\n\nbuf.js\n------\n\nBuild a buffer\n\n    #!/usr/bin/env node\n\n    var BufferPut = require('bufferput');\n    var buf = (new BufferPut())\n        .word16be(1337)\n        .word8(1)\n        .pad(5)\n        .put(new Buffer('pow', 'ascii'))\n        .word32le(9000)\n        .buffer()\n    ;\n    console.log(buf);\n\nOutput:\n    <Buffer 05 39 01 00 00 00 00 00 70 6f 77 28 23 00 00>\n\nstream.js\n---------\n\nSend a buffer to a writeable stream\n\n    #!/usr/bin/env node\n\n    var BufferPut = require('bufferput');\n    (new BufferPut())\n        .word16be(24930)\n        .word32le(1717920867)\n        .word8(103)\n        .write(process.stdout)\n    ;\n\nOutput:\n    abcdefg\n","publish_time":1374153960083,"_cnpm_publish_time":1374153960083,"dist-tags":{"latest":"0.1.3"}}