{"_id":"to-buffer","_rev":"1158","name":"to-buffer","description":"Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"mafintosh","email":""},{"name":"npm:mafintosh","email":""}],"time":{"modified":"2023-03-24T16:23:12.000Z","created":"2016-02-15T20:04:36.934Z","1.1.1":"2018-04-26T14:56:24.701Z","1.1.0":"2017-04-12T19:46:13.233Z","1.0.1":"2016-02-15T20:05:54.031Z","1.0.0":"2016-02-15T20:04:36.934Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/to-buffer.git"},"versions":{"1.1.1":{"name":"to-buffer","version":"1.1.1","description":"Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back","main":"index.js","dependencies":{},"devDependencies":{"standard":"^6.0.5","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/to-buffer.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/to-buffer/issues"},"homepage":"https://github.com/mafintosh/to-buffer","gitHead":"17a1aa27bfce0218979472cfe4776b50438e8857","_id":"to-buffer@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"493bd48f62d7c43fcded313a03dcadb2e1213a80","size":1730,"noattachment":false,"key":"/to-buffer/-/to-buffer-1.1.1.tgz","tarball":"http://name.csiicloud.com:7001/to-buffer/download/to-buffer-1.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"npm:mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-buffer_1.1.1_1524754584618_0.8258302631612433"},"_hasShrinkwrap":false,"publish_time":1524754584701,"_cnpm_publish_time":1524754584701},"1.1.0":{"name":"to-buffer","version":"1.1.0","description":"Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back","main":"index.js","dependencies":{},"devDependencies":{"standard":"^6.0.5","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/to-buffer.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/to-buffer/issues"},"homepage":"https://github.com/mafintosh/to-buffer","gitHead":"e70eedf2492df123ea19d1c52bf07bf2e590b080","_id":"to-buffer@1.1.0","_shasum":"375bc03edae5c35a8fa0b3fe95a1f3985db1dcfa","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"375bc03edae5c35a8fa0b3fe95a1f3985db1dcfa","size":1724,"noattachment":false,"key":"/to-buffer/-/to-buffer-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/to-buffer/download/to-buffer-1.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"npm:mafintosh","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-buffer-1.1.0.tgz_1492026371375_0.07645408087410033"},"directories":{},"publish_time":1492026373233,"_hasShrinkwrap":false,"_cnpm_publish_time":1492026373233},"1.0.1":{"name":"to-buffer","version":"1.0.1","description":"Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back","main":"index.js","dependencies":{},"devDependencies":{"standard":"^6.0.5","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/to-buffer.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/to-buffer/issues"},"homepage":"https://github.com/mafintosh/to-buffer","gitHead":"8b7b0403ce3ea12a20c53d154c28082918a310bc","_id":"to-buffer@1.0.1","_shasum":"91283f91a2a1935200dcb32a6aaeab5828955612","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"91283f91a2a1935200dcb32a6aaeab5828955612","size":1736,"noattachment":false,"key":"/to-buffer/-/to-buffer-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/to-buffer/download/to-buffer-1.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"npm:mafintosh","email":""}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/to-buffer-1.0.1.tgz_1455566751907_0.7123836160171777"},"directories":{},"publish_time":1455566754031,"_cnpm_publish_time":1455566754031,"_hasShrinkwrap":false},"1.0.0":{"name":"to-buffer","version":"1.0.0","description":"WIP - nothing to see here","main":"index.js","dependencies":{},"devDependencies":{"standard":"^6.0.5","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/to-buffer.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/to-buffer/issues"},"homepage":"https://github.com/mafintosh/to-buffer","gitHead":"b57a85697b94dfd17ffc2d8c90484ece06ff5e7f","_id":"to-buffer@1.0.0","_shasum":"9a3d84bc3418679add0251ae92d3e4c41b38af32","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"9a3d84bc3418679add0251ae92d3e4c41b38af32","size":1748,"noattachment":false,"key":"/to-buffer/-/to-buffer-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/to-buffer/download/to-buffer-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""},{"name":"npm:mafintosh","email":""}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/to-buffer-1.0.0.tgz_1455566673200_0.9151617083698511"},"directories":{},"publish_time":1455566676934,"_cnpm_publish_time":1455566676934,"_hasShrinkwrap":false}},"readme":"# to-buffer\n\nPass in a string, get a buffer back. Pass in a buffer, get the same buffer back.\n\n```\nnpm install to-buffer\n```\n\n[![build status](https://travis-ci.org/mafintosh/to-buffer.svg?branch=master)](https://travis-ci.org/mafintosh/to-buffer)\n\n## Usage\n\n``` js\nvar toBuffer = require('to-buffer')\nconsole.log(toBuffer('hi')) // <Buffer 68 69>\nconsole.log(toBuffer(Buffer('hi'))) // <Buffer 68 69>\nconsole.log(toBuffer('6869', 'hex')) // <Buffer 68 69>\nconsole.log(toBuffer(43)) // throws\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/to-buffer","bugs":{"url":"https://github.com/mafintosh/to-buffer/issues"},"license":"MIT"}