{"_id":"buffer-shims","_rev":"1710","name":"buffer-shims","description":"some shims for node buffers","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"cwmma","email":"calvin.metcalf@gmail.com"}],"time":{"modified":"2021-06-03T09:56:02.000Z","created":"2016-05-06T18:54:51.096Z","1.0.0":"2016-05-06T18:54:51.096Z"},"users":{},"repository":{"type":"git","url":"git@github.com:calvinmetcalf/buffer-shims.git"},"versions":{"1.0.0":{"name":"buffer-shims","version":"1.0.0","description":"some shims for node buffers","main":"index.js","scripts":{"test":"tape test/*.js"},"files":["index.js"],"license":"MIT","devDependencies":{"tape":"^4.5.1"},"repository":{"type":"git","url":"git@github.com:calvinmetcalf/buffer-shims.git"},"gitHead":"ea89b3857ab5b8203957922a84e9a48cf4c47e0a","bugs":{"url":"https://github.com/calvinmetcalf/buffer-shims/issues"},"_id":"buffer-shims@1.0.0","_shasum":"9978ce317388c649ad8793028c3477ef044a8b51","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"cwmma","email":"calvin.metcalf@gmail.com"},"dist":{"shasum":"9978ce317388c649ad8793028c3477ef044a8b51","size":2156,"noattachment":false,"key":"/buffer-shims/-/buffer-shims-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/buffer-shims/download/buffer-shims-1.0.0.tgz"},"maintainers":[{"name":"cwmma","email":"calvin.metcalf@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/buffer-shims-1.0.0.tgz_1462560889323_0.8640750856138766"},"directories":{},"publish_time":1462560891096,"_cnpm_publish_time":1462560891096,"_hasShrinkwrap":false}},"readme":"buffer-shims\n===\n\nfunctions to make sure the new buffer methods work in older browsers.\n\n```js\nvar bufferShim = require('buffer-shims');\nbufferShim.from('foo');\nbufferShim.alloc(9, 'cafeface', 'hex');\nbufferShim.allocUnsafe(15);\nbufferShim.allocUnsafeSlow(21);\n```\n\nshould just use the original  in newer nodes and on older nodes uses fallbacks.\n\nKnown Issues\n===\n- this does not patch the buffer object, only the constructor stuff\n- it's actually a polyfill\n\n![](https://i.imgur.com/zxII3jJ.gif)\n","_attachments":{},"bugs":{"url":"https://github.com/calvinmetcalf/buffer-shims/issues"},"license":"MIT"}