{"_id":"buffer-v6-polyfill","_rev":"10-dd4d30e25882fc092d7daf4f0e5cdf6d","name":"buffer-v6-polyfill","description":"A polyfill for older versions of node.js for the node v6 Buffer","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"buffer-v6-polyfill","version":"1.0.0","description":"A polyfill for older versions of node.js for the node v6 Buffer","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Daplie/node-buffer-v6-shim.git"},"keywords":["buffer","v6","node","node.js","polyfill","shim"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://github.com/Daplie/node-buffer-v6-shim/issues"},"homepage":"https://github.com/Daplie/node-buffer-v6-shim#readme","gitHead":"c878795bbb335786ee9ec8971e61a4f76d42e2ff","_id":"buffer-v6-polyfill@1.0.0","_shasum":"5ce8cd8f93b31bd8541531c1f29553d6bd5a3cbe","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"dist":{"shasum":"5ce8cd8f93b31bd8541531c1f29553d6bd5a3cbe","tarball":"https://registry.npmjs.org/buffer-v6-polyfill/-/buffer-v6-polyfill-1.0.0.tgz","integrity":"sha512-mzpPqWIcFuhx/8y3ptM6iQFoJ5PMoc51GnDJf1gTvKDfDLogQx+M5QlNjkG5O76oCNGdKJ02hdkk1ZI9frHk8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEojZ4DwSp+zUytnVZZiFKJKgPBsv86irnsDmxpqeIoRAiEApbZaLOZETlglD2oiwV64wTg0AYXVQ9G1ge72YG2vvzY="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/buffer-v6-polyfill-1.0.0.tgz_1470284245419_0.5870435163378716"}},"1.0.1":{"name":"buffer-v6-polyfill","version":"1.0.1","description":"A polyfill for older versions of node.js for the node v6 Buffer","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Daplie/node-buffer-v6-shim.git"},"keywords":["buffer","v6","node","node.js","polyfill","shim"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://github.com/Daplie/node-buffer-v6-shim/issues"},"homepage":"https://github.com/Daplie/node-buffer-v6-shim#readme","gitHead":"db041d134890d080348813445094c8a05615c723","_id":"buffer-v6-polyfill@1.0.1","_shasum":"ff7c1d43fb87d2769b9f79d6f079fb4f4a2e159e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"dist":{"shasum":"ff7c1d43fb87d2769b9f79d6f079fb4f4a2e159e","tarball":"https://registry.npmjs.org/buffer-v6-polyfill/-/buffer-v6-polyfill-1.0.1.tgz","integrity":"sha512-KObDeN75ZB9H2kDnZ2bPQ9ox/PFzpJ4CdaqJkvPcAS7mQ7a9FwS+OocMJ2P1OQA/GJ3sOn4gIGyeWY/DVshL7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDP3LgbRfFrteB561dweMD+aa9nOUdKEBcllSwysEk/YwIhALK6EQ0sI/kCxVNhHdq9X9SVJ4kE+69B9SfPEEwTTIDe"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/buffer-v6-polyfill-1.0.1.tgz_1470284878110_0.5267409556545317"}},"1.0.2":{"name":"buffer-v6-polyfill","version":"1.0.2","description":"A polyfill for older versions of node.js for the node v6 Buffer","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Daplie/node-buffer-v6-shim.git"},"keywords":["buffer","v6","node","node.js","polyfill","shim"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://github.com/Daplie/node-buffer-v6-shim/issues"},"homepage":"https://github.com/Daplie/node-buffer-v6-shim#readme","gitHead":"30c8a95d34c3aa23a2d5754e7b27a40a1d27bb1c","_id":"buffer-v6-polyfill@1.0.2","_shasum":"4464df1aa2576d433c41fd3b1a1945f417ce8234","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"dist":{"shasum":"4464df1aa2576d433c41fd3b1a1945f417ce8234","tarball":"https://registry.npmjs.org/buffer-v6-polyfill/-/buffer-v6-polyfill-1.0.2.tgz","integrity":"sha512-0DwQ6PgLmLB9TNOUWtmM1MupN+ffCFcGv8JWt8T3GzQUUiCJTkIfB2t9fz01N2ExaaXopjM6M0hj431g7BcbXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvmjJkWP4enNHhn44qQJN8FWYU1pELxyAP1dXElipdNwIhANbPx7/reSmWQhz+OFOmy57cXIRXPlJfIgr1r23zAlxv"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/buffer-v6-polyfill-1.0.2.tgz_1470347180322_0.24492903798818588"}},"1.0.3":{"name":"buffer-v6-polyfill","version":"1.0.3","description":"A polyfill for older versions of node.js for the node v6 Buffer","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Daplie/node-buffer-v6-shim.git"},"keywords":["buffer","v6","node","node.js","polyfill","shim"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://github.com/Daplie/node-buffer-v6-shim/issues"},"homepage":"https://github.com/Daplie/node-buffer-v6-shim#readme","gitHead":"1454582f32c09148cd85b06b63781553aea323af","_id":"buffer-v6-polyfill@1.0.3","_shasum":"bc695c6f19d00a63e83338c36cd68f3f5dcba3e8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"dist":{"shasum":"bc695c6f19d00a63e83338c36cd68f3f5dcba3e8","tarball":"https://registry.npmjs.org/buffer-v6-polyfill/-/buffer-v6-polyfill-1.0.3.tgz","integrity":"sha512-8erfTDCuA8sRrDomLB81Swwq04euTvxyqRMbg4NrCdIDDne95fwOkKfZCRvfXhlhukofq0qYOYzdPDYitEew+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu4yG7zC4m4yRjlNlfktEM/hAZRxLZI/aMusc3ESj8sgIgWJa2dKMTABcpt6ZrUS6jS7cJgAUYg3MDndjDxxtGZ8k="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/buffer-v6-polyfill-1.0.3.tgz_1470878473693_0.25876560737378895"}},"1.0.4":{"name":"buffer-v6-polyfill","version":"1.0.4","description":"A polyfill for older versions of node.js for the node v6 Buffer","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://git.daplie.com/Daplie/node-buffer-v6-shim.git"},"keywords":["buffer","v6","node","node.js","polyfill","shim"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://git.daplie.com/Daplie/node-buffer-v6-shim/issues"},"homepage":"https://git.daplie.com/Daplie/node-buffer-v6-shim#readme","gitHead":"a5b0818f79fdde1417b0969ef4a9a24a6285ec09","_id":"buffer-v6-polyfill@1.0.4","_shasum":"6c15fd2ac9057d44172a2a8eff255a9f47ef34ab","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"dist":{"shasum":"6c15fd2ac9057d44172a2a8eff255a9f47ef34ab","tarball":"https://registry.npmjs.org/buffer-v6-polyfill/-/buffer-v6-polyfill-1.0.4.tgz","integrity":"sha512-/HoFw4zZDbv3T/ibAhEyLL3hl8+t+r/lKOw3omIrpsThQ/g5AqyAqBtL0lEgRqyvrtg1Y62ZTe2NMRyukLFO1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5r2hLjEsbK04SKutpOPxDjHpI2kRkXRy4flfZLHd0VAiA0Ib7McLWaEsnrmNlg1F1zkp0doMaLQcJWWeBEqIMTRA=="}]},"maintainers":[{"email":"coolaj86@gmail.com","name":"coolaj86"},{"email":"insightful_schmidt@yahoo.com.au","name":"insightfuls"},{"email":"jim.hager@daplie.com","name":"jimh"},{"email":"tim@creationix.com","name":"creationix"},{"email":"slgibelyou@gmail.com","name":"tigerbot"},{"email":"drewwarrentiy@gmail.com","name":"drewwarrentiy"},{"email":"npm@daplie.com","name":"daplieinc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/buffer-v6-polyfill-1.0.4.tgz_1501090840762_0.19615207891911268"}},"1.0.5":{"name":"buffer-v6-polyfill","version":"1.0.5","description":"A polyfill for older versions of node.js for the node v6 Buffer","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://git.daplie.com/Daplie/node-buffer-v6-shim.git"},"keywords":["buffer","v6","node","node.js","polyfill","shim"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://git.daplie.com/Daplie/node-buffer-v6-shim/issues"},"homepage":"https://git.daplie.com/Daplie/node-buffer-v6-shim#readme","gitHead":"3f73d42ca4a810876df449d4fad632fc70ad6fa8","_id":"buffer-v6-polyfill@1.0.5","_shasum":"d1cdafeb5600bef6c28d6144964256bd12e01677","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"dist":{"shasum":"d1cdafeb5600bef6c28d6144964256bd12e01677","tarball":"https://registry.npmjs.org/buffer-v6-polyfill/-/buffer-v6-polyfill-1.0.5.tgz","integrity":"sha512-LdUw/JMZyKN+EBDbOHqynYtOLXDjgo+uf5vCUhfO5hVsU2chvbqyexizvxUMaU4ipYZy9MiQyIFwMeIgsb6nBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID+TIieJH+r0q2kbnoj9Z8Na5dDo5KSNvORJbVPP2P0SAiATe6zVyM5VrocUJw4n9uHmdo3u6tSSHTN/0cE4GJjztA=="}]},"maintainers":[{"email":"coolaj86@gmail.com","name":"coolaj86"},{"email":"insightful_schmidt@yahoo.com.au","name":"insightfuls"},{"email":"jim.hager@daplie.com","name":"jimh"},{"email":"tim@creationix.com","name":"creationix"},{"email":"slgibelyou@gmail.com","name":"tigerbot"},{"email":"drewwarrentiy@gmail.com","name":"drewwarrentiy"},{"email":"npm@daplie.com","name":"daplieinc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/buffer-v6-polyfill-1.0.5.tgz_1501091023746_0.2968033109791577"}}},"readme":"# node-buffer-v6-shim\n\nA shim for older versions of node &lt; v6 for methods such as `allow()`, `from()`, etc\n\nInstall\n-------\n\n```\n# Latest v1.x\nnpm install --save git+https://git.daplie.com/Daplie/node-buffer-v6-shim.git#v1\n\n# Whatever happens to be in npm\nnpm install --save buffer-v6-shim\n```\n\nUsage\n-----\n\n```\n'use strict';\n\nrequire('buffer-v6-polyfill');\n\n// all your codez ...\n```\n\nShow me the Code\n----------------\n\n```javascript\n'use strict';\n\nif (Number(process.version.match(/^v(\\d+\\.\\d+)/)[1]) >= 6.0) {\n  return;\n}\n\nfunction newBuffer(data, encoding, len) {\n  return new Buffer(data, encoding, len);\n}\n\nfunction newSlowBuffer(data, encoding, len) {\n  var SlowBuffer = require('buffer').SlowBuffer;\n  return new SlowBuffer(data, encoding, len);\n}\n\nif (!Buffer.alloc) {\n  Buffer.alloc = newBuffer;\n}\nif (!Buffer.allocUnsafe) {\n  Buffer.allocUnsafe = newBuffer;\n}\nif (!Buffer.allocUnsafeSlow) {\n  Buffer.allocUnsafeSlow = newSlowBuffer;\n}\nif (!Buffer.from) {\n  Buffer.from = newBuffer;\n}\n\ntry {\n  Buffer.from('1337', 'hex');\n} catch(e) {\n  // wish I could do something here to fix the broken Buffer.from\n  try {\n    Buffer.from = newBuffer;\n  } catch(e) {\n    // but alas, I cannot\n    console.warn(\"Your node version has buggy Buffer.from support. Please update to node >= v4.5 or >= v6.3\");\n  }\n}\n```\n","maintainers":[{"email":"coolaj86@gmail.com","name":"coolaj86"}],"time":{"modified":"2022-06-13T05:15:30.348Z","created":"2016-08-04T04:17:27.960Z","1.0.0":"2016-08-04T04:17:27.960Z","1.0.1":"2016-08-04T04:27:58.351Z","1.0.2":"2016-08-04T21:46:21.863Z","1.0.3":"2016-08-11T01:21:15.477Z","1.0.4":"2017-07-26T17:40:41.659Z","1.0.5":"2017-07-26T17:43:43.891Z"},"homepage":"https://git.daplie.com/Daplie/node-buffer-v6-shim#readme","keywords":["buffer","v6","node","node.js","polyfill","shim"],"repository":{"type":"git","url":"git+https://git.daplie.com/Daplie/node-buffer-v6-shim.git"},"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"bugs":{"url":"https://git.daplie.com/Daplie/node-buffer-v6-shim/issues"},"license":"(MIT OR Apache-2.0)","readmeFilename":"README.md"}