@zkochan/pnpm
Version:
Fast, disk space efficient package manager
101 lines (100 loc) • 4.74 kB
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"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/tar-stream"
]
],
"_from": "buffer-alloc@>=1.1.0 <2.0.0",
"_id": "buffer-alloc@1.2.0",
"_inCache": true,
"_location": "/buffer-alloc",
"_nodeVersion": "10.2.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/buffer-alloc_1.2.0_1527637266526_0.19419340644925764"
},
"_npmUser": {
"name": "linusu",
"email": "linus@folkdatorn.se"
},
"_npmVersion": "5.6.0",
"_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": [
"/csv-parser",
"/tar-stream"
],
"_resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz",
"_shasum": "890dd90d923a873e08e10e5fd51a57e5b7cce0ec",
"_shrinkwrap": null,
"_spec": "buffer-alloc@^1.1.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/tar-stream",
"bugs": {
"url": "https://github.com/LinusU/buffer-alloc/issues"
},
"dependencies": {
"buffer-alloc-unsafe": "^1.1.0",
"buffer-fill": "^1.0.0"
},
"description": "A [ponyfill](https://ponyfill.com) for `Buffer.alloc`.",
"devDependencies": {
"standard": "^7.1.2"
},
"directories": {},
"dist": {
"integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==",
"shasum": "890dd90d923a873e08e10e5fd51a57e5b7cce0ec",
"tarball": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz",
"fileCount": 3,
"unpackedSize": 2274,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDeUSCRA9TVsSAnZWagAARAEP/32m9WSt0ZIpF7+umUJY\nTzwhGXcaMYWtZOBdw+xkBY9F5+NlRIwNk6/EupLFi/BShct7VMccElsFNX21\nSxi1Jo/+EZZCULaV8Uh8QwEIpDHWN4C9SDBMbdLWORRVriQYYZgqNLVDBv9O\njraOM3MfC/6ESCbN2x+OHubawV3t02lwTwWcbdM42Y4kDekIugesoVIj1+Sq\nbyrjs1zisKTPLacuMHKKXj13pIOXvSTz7PVenVJZAuwm2bUJmxrfwtXFYLfK\npMNwyu3tv6Ci85Mq5gXGecPNbmVej8qyqJmwk4cqhZH4pxWhpqSb7g2chmTe\nQnqG/WsT1CDD6b4fTe8qLUZzZRT/X4sKyvM4hAL7nveUsU3EjjXWmHLGXmN/\nWjH3ZIkm8O7owXcbpEycwnySZiG8BmlcjvHiywwckjCt8v7UwrQocG/lE8gF\nef00DQLtd2JRdkTZt+WTgUY6siVKquhuVavJbUkQ2bZD+WZjPetohMOTLhUy\nIVHxvNGxoUKS9fGdBDKViRehO/5qX84Ic2Y59NSPtAh5h52yviYtUam6qdKf\nXigpwDZBBqA4lAZ9TP0rs9ZfR/rsxTryRAYQz0LbHIFaYN3uNvkU11IMJ6wv\n/Yg3rVL4znO9w2R5FpsoMYReAnZLIM8QfpTIcIDgfI+LAU+Fgylznj7mNBwM\nLAJU\r\n=hQoj\r\n-----END PGP SIGNATURE-----\r\n"
},
"files": [
"index.js"
],
"gitHead": "a0d55382c805f3b117a055e0be203f13f2519cc5",
"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.2.0"
}