UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

99 lines (98 loc) 4.84 kB
{ "_args": [ [ { "raw": "buffer-alloc-unsafe@^1.1.0", "scope": null, "escapedName": "buffer-alloc-unsafe", "name": "buffer-alloc-unsafe", "rawSpec": "^1.1.0", "spec": ">=1.1.0 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/buffer-alloc" ] ], "_from": "buffer-alloc-unsafe@>=1.1.0 <2.0.0", "_id": "buffer-alloc-unsafe@1.1.0", "_inCache": true, "_location": "/buffer-alloc-unsafe", "_nodeVersion": "10.2.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/buffer-alloc-unsafe_1.1.0_1527635919542_0.8786275682843983" }, "_npmUser": { "name": "linusu", "email": "linus@folkdatorn.se" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "buffer-alloc-unsafe@^1.1.0", "scope": null, "escapedName": "buffer-alloc-unsafe", "name": "buffer-alloc-unsafe", "rawSpec": "^1.1.0", "spec": ">=1.1.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/buffer-alloc" ], "_resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", "_shasum": "bd7dc26ae2972d0eda253be061dba992349c19f0", "_shrinkwrap": null, "_spec": "buffer-alloc-unsafe@^1.1.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/buffer-alloc", "bugs": { "url": "https://github.com/LinusU/buffer-alloc-unsafe/issues" }, "dependencies": {}, "description": "A [ponyfill](https://ponyfill.com) for `Buffer.allocUnsafe`.", "devDependencies": { "standard": "^7.1.2" }, "directories": {}, "dist": { "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", "shasum": "bd7dc26ae2972d0eda253be061dba992349c19f0", "tarball": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", "fileCount": 3, "unpackedSize": 1936, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDd/RCRA9TVsSAnZWagAAyRsP/3sjiRG+h8mqwIs9CZjK\n4z+jUqruRnm7xqZAHwtEGUrrJiWpJ77P02u0A122fWxjofhLjkYbePG8ZGMR\nIovOroyc1lBEJ8cI85ZLirvEfUUQJ+SFPkL64o9n3AXVi66OWs0jJtSq7FYL\ntOdfqA942lKMEs3PCZ4K2kpgKmyNXxfhgdRbqFnDHP1XuswsPG3gnHxP2O5b\nqcgz4c+cKmVecfMHLJbGwR+Z+aghzBOiG0RxXpVi9lXDAnqdtTqBg83di8JA\nzQ0n/nFGx28xdISwGpdzdRCpsZu2D+sGDcEvwa0uwhU5QpID41Hddentg0dN\nW8j+afOdFT58DUVuUSRxxHBm27xJFkHfa4VosUmqQgkpUlmQpUBk0Mg5zj44\nFpOHd0vPuEVBrhics/uvch2k/r3+epwwMxpAZr8Z6mTtleet7C15CFbLlRyc\n11q9KO54/VqVdthhCCVrXXWH2FP73MbcE5chNX15vNJr7b+fXTDM/POR6uIa\nFmzBFL34oPdCpofQIp7OVFtrten9fKZKsg4l8Ly83cKhVAJWaotC0vIhhGYi\nslmAMdKL9GG8udV04WmFyGDXs8vzf3+7i+y6UaLUX7eJhVVM0w7iHyaO9Ljt\n4t74PZ3CZPzXylbGZqGmDg4DBvYG4FAaXu9zUkGhQBGSlPP4ohFNvmN7A7U2\nCH9/\r\n=fNVs\r\n-----END PGP SIGNATURE-----\r\n" }, "files": [ "index.js" ], "gitHead": "93c66c6a1e0f812a55128036004d6ff8a561fd98", "homepage": "https://github.com/LinusU/buffer-alloc-unsafe#readme", "keywords": [ "allocUnsafe", "allocate", "buffer allocUnsafe", "buffer unsafe allocate", "buffer", "ponyfill", "unsafe allocate" ], "license": "MIT", "maintainers": [ { "name": "linusu", "email": "linus@folkdatorn.se" } ], "name": "buffer-alloc-unsafe", "optionalDependencies": {}, "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", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/LinusU/buffer-alloc-unsafe.git" }, "scripts": { "test": "standard && node test" }, "version": "1.1.0" }