{ "_args": [ [ { "raw": "buffer-alloc-unsafe@^0.1.0", "scope": null, "escapedName": "buffer-alloc-unsafe", "name": "buffer-alloc-unsafe", "rawSpec": "^0.1.0", "spec": ">=0.1.0 <0.2.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/buffer-alloc" ] ], "_from": "buffer-alloc-unsafe@>=0.1.0 <0.2.0", "_id": "buffer-alloc-unsafe@0.1.1", "_inCache": true, "_location": "/buffer-alloc-unsafe", "_nodeVersion": "6.4.0", "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/buffer-alloc-unsafe-0.1.1.tgz_1471785933734_0.2103108037263155" }, "_npmUser": { "name": "linusu", "email": "linus@folkdatorn.se" }, "_npmVersion": "3.10.3", "_phantomChildren": {}, "_requested": { "raw": "buffer-alloc-unsafe@^0.1.0", "scope": null, "escapedName": "buffer-alloc-unsafe", "name": "buffer-alloc-unsafe", "rawSpec": "^0.1.0", "spec": ">=0.1.0 <0.2.0", "type": "range" }, "_requiredBy": [ "/buffer-alloc" ], "_resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-0.1.1.tgz", "_shasum": "ffe1f67551dd055737de253337bfe853dfab1a6a", "_shrinkwrap": null, "_spec": "buffer-alloc-unsafe@^0.1.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/buffer-alloc", "bugs": { "url": "https://github.com/LinusU/buffer-alloc-unsafe/issues" }, "dependencies": {}, "description": "A ponyfill for `Buffer.allocUnsafe`.", "devDependencies": { "standard": "^7.1.2" }, "directories": {}, "dist": { "shasum": "ffe1f67551dd055737de253337bfe853dfab1a6a", "tarball": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-0.1.1.tgz" }, "gitHead": "44b93d3cf9861b26fd0d2da03e7ccb3146321995", "homepage": "https://github.com/LinusU/buffer-alloc-unsafe#readme", "keywords": [ "allocUnsafe", "allocate", "buffer allocUnsafe", "buffer unsafe allocate", "buffer", "unsafe allocate" ], "license": "MIT", "maintainers": [ { "name": "linusu", "email": "linus@folkdatorn.se" } ], "name": "buffer-alloc-unsafe", "optionalDependencies": {}, "readme": "# Buffer Alloc Unsafe\n\nA ponyfill for `Buffer.allocUnsafe`.\n\nWorks as Node.js: `v7.0.0`
\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//=> \n\nconsole.log(allocUnsafe(10))\n//=> \n\nconsole.log(allocUnsafe(10))\n//=> \n\nallocUnsafe(-10)\n//=> RangeError: \"size\" argument must not be negative\n```\n\n## API\n\n### allocUnsafe(size)\n\n- `size` <Integer> 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", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/LinusU/buffer-alloc-unsafe.git" }, "scripts": { "test": "standard && node test" }, "version": "0.1.1" }