{"name":"buffer-alloc-unsafe","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/linusu/buffer-alloc-unsafe.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"standard":"^7.1.2"},"keywords":["allocUnsafe","allocate","buffer allocUnsafe","buffer unsafe allocate","buffer","unsafe allocate"],"gitHead":"fb1d13a3a28aefa62f687077fba4b76a802d4eed","description":"A ponyfill for `Buffer.allocUnsafe`.","bugs":{"url":"https://github.com/linusu/buffer-alloc-unsafe/issues"},"homepage":"https://github.com/linusu/buffer-alloc-unsafe#readme","_id":"buffer-alloc-unsafe@0.1.0","_shasum":"31e22620ab592a7402e12a3c3915a2060d2d06a2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"31e22620ab592a7402e12a3c3915a2060d2d06a2","tarball":"http://registry-npm.ywwl.com/buffer-alloc-unsafe/download/buffer-alloc-unsafe-0.1.0.tgz","integrity":"sha512-Y5qgXxYRNV1n8+mdIauIsJvpM/9tUsZefRL3ExwyntawYnYc5WL/XzH+/SrrncdA5AVWeAQTcJl9OxKamBGtHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZFfzz2A5nM9Ed+uGptG0byMbef8i23Ka83Md+gPNSfAiEApnMt31+r6vLOYGz5DMGOJR2IeXRKEsEmFFvmJQDtFZM="}],"size":1077,"noattachment":false,"key":"/buffer-alloc-unsafe/-/buffer-alloc-unsafe-0.1.0.tgz"},"maintainers":[{"name":"linusu","email":"linus@folkdatorn.se"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/buffer-alloc-unsafe-0.1.0.tgz_1471550030501_0.2909500556997955"},"directories":{},"readme":"# Buffer Alloc Unsafe\n\nA [ponyfill](https://ponyfill.com) for `Buffer.allocUnsafe`.\n\nWorks as Node.js: `v7.0.0` <br>\nWorks on Node.js: `v0.10.0`\n\n## Installation\n\n```sh\nnpm install --save buffer-alloc-unsafe\n```\n\n## Usage\n\n```js\nconst allocUnsafe = require('buffer-alloc-unsafe')\n\nconsole.log(allocUnsafe(10))\n//=> <Buffer 78 0c 80 03 01 00 00 00 05 00>\n\nconsole.log(allocUnsafe(10))\n//=> <Buffer 58 ed bf 5f ff 7f 00 00 01 00>\n\nconsole.log(allocUnsafe(10))\n//=> <Buffer 50 0c 80 03 01 00 00 00 0a 00>\n\nallocUnsafe(-10)\n//=> RangeError: \"size\" argument must not be negative\n```\n\n## API\n\n### allocUnsafe(size)\n\n- `size` &lt;Integer&gt; The desired length of the new `Buffer`\n\nAllocates a new *non-zero-filled* `Buffer` of `size` bytes. The `size` must be\nless than or equal to the value of `buffer.kMaxLength` and greater than or equal\nto zero. Otherwise, a `RangeError` is thrown.\n\n## See also\n\n- [buffer-alloc](https://github.com/LinusU/buffer-alloc) A ponyfill for `Buffer.alloc`\n- [buffer-fill](https://github.com/LinusU/buffer-fill) A ponyfill for `Buffer.fill`\n- [buffer-from](https://github.com/LinusU/buffer-from) A ponyfill for `Buffer.from`\n","publish_time":1471550031482,"_cnpm_publish_time":1471550031482,"dist-tags":{"latest":"1.1.0"}}