93 lines
3.5 KiB
JSON
93 lines
3.5 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "buffer-alloc@^1.1.0",
|
|
"scope": null,
|
|
"escapedName": "buffer-alloc",
|
|
"name": "buffer-alloc",
|
|
"rawSpec": "^1.1.0",
|
|
"spec": ">=1.1.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/md5-file"
|
|
]
|
|
],
|
|
"_from": "buffer-alloc@>=1.1.0 <2.0.0",
|
|
"_id": "buffer-alloc@1.1.0",
|
|
"_inCache": true,
|
|
"_location": "/buffer-alloc",
|
|
"_nodeVersion": "7.1.0",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-18-east.internal.npmjs.com",
|
|
"tmp": "tmp/buffer-alloc-1.1.0.tgz_1480088089035_0.15028314059600234"
|
|
},
|
|
"_npmUser": {
|
|
"name": "linusu",
|
|
"email": "linus@folkdatorn.se"
|
|
},
|
|
"_npmVersion": "3.10.9",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "buffer-alloc@^1.1.0",
|
|
"scope": null,
|
|
"escapedName": "buffer-alloc",
|
|
"name": "buffer-alloc",
|
|
"rawSpec": "^1.1.0",
|
|
"spec": ">=1.1.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/md5-file"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.1.0.tgz",
|
|
"_shasum": "05514d33bf1656d3540c684f65b1202e90eca303",
|
|
"_shrinkwrap": null,
|
|
"_spec": "buffer-alloc@^1.1.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/md5-file",
|
|
"bugs": {
|
|
"url": "https://github.com/LinusU/buffer-alloc/issues"
|
|
},
|
|
"dependencies": {
|
|
"buffer-alloc-unsafe": "^0.1.0",
|
|
"buffer-fill": "^0.1.0"
|
|
},
|
|
"description": "A [ponyfill](https://ponyfill.com) for `Buffer.alloc`.",
|
|
"devDependencies": {
|
|
"standard": "^7.1.2"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "05514d33bf1656d3540c684f65b1202e90eca303",
|
|
"tarball": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.1.0.tgz"
|
|
},
|
|
"gitHead": "b3f5765ddd6dd8ffbd3f34bbb8bee03c0d79a267",
|
|
"homepage": "https://github.com/LinusU/buffer-alloc#readme",
|
|
"keywords": [
|
|
"alloc",
|
|
"allocate",
|
|
"buffer alloc",
|
|
"buffer allocate",
|
|
"buffer"
|
|
],
|
|
"license": "MIT",
|
|
"maintainers": [
|
|
{
|
|
"name": "linusu",
|
|
"email": "linus@folkdatorn.se"
|
|
}
|
|
],
|
|
"name": "buffer-alloc",
|
|
"optionalDependencies": {},
|
|
"readme": "# Buffer Alloc\n\nA [ponyfill](https://ponyfill.com) for `Buffer.alloc`.\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\n```\n\n## Usage\n\n```js\nconst alloc = require('buffer-alloc')\n\nconsole.log(alloc(4))\n//=> <Buffer 00 00 00 00>\n\nconsole.log(alloc(6, 0x41))\n//=> <Buffer 41 41 41 41 41 41>\n\nconsole.log(alloc(10, 'linus', 'utf8'))\n//=> <Buffer 6c 69 6e 75 73 6c 69 6e 75 73>\n```\n\n## API\n\n### alloc(size[, fill[, encoding]])\n\n- `size` <Integer> The desired length of the new `Buffer`\n- `fill` <String> | <Buffer> | <Integer> A value to pre-fill the new `Buffer` with. **Default:** `0`\n- `encoding` <String> If `fill` is a string, this is its encoding. **Default:** `'utf8'`\n\nAllocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the `Buffer` will be zero-filled.\n\n## See also\n\n- [buffer-alloc-unsafe](https://github.com/LinusU/buffer-alloc-unsafe) A ponyfill for `Buffer.allocUnsafe`\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.git"
|
|
},
|
|
"scripts": {
|
|
"test": "standard && node test"
|
|
},
|
|
"version": "1.1.0"
|
|
}
|