{
  "_id": "buffer-alloc-unsafe",
  "maintainers": [
    {
      "name": "linusu",
      "email": "linus@folkdatorn.se"
    }
  ],
  "keywords": [
    "allocUnsafe",
    "allocate",
    "buffer allocUnsafe",
    "buffer unsafe allocate",
    "buffer",
    "ponyfill",
    "unsafe allocate"
  ],
  "dist-tags": {
    "latest": "1.1.0"
  },
  "_rev": "7-29803942313b4389d0032b19bba4d07f",
  "description": "A [ponyfill](https://ponyfill.com) for `Buffer.allocUnsafe`.",
  "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",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/LinusU/buffer-alloc-unsafe.git"
  },
  "bugs": {
    "url": "https://github.com/LinusU/buffer-alloc-unsafe/issues"
  },
  "license": "MIT",
  "versions": {
    "0.1.0": {
      "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": "https://archive.ito.gov.ir/npm/_packages/buffer-alloc-unsafe/-/buffer-alloc-unsafe-0.1.0.tgz",
        "integrity": "sha512-Y5qgXxYRNV1n8+mdIauIsJvpM/9tUsZefRL3ExwyntawYnYc5WL/XzH+/SrrncdA5AVWeAQTcJl9OxKamBGtHA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIAZFfzz2A5nM9Ed+uGptG0byMbef8i23Ka83Md+gPNSfAiEApnMt31+r6vLOYGz5DMGOJR2IeXRKEsEmFFvmJQDtFZM="
          }
        ]
      },
      "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": {}
    },
    "0.1.1": {
      "name": "buffer-alloc-unsafe",
      "version": "0.1.1",
      "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": "44b93d3cf9861b26fd0d2da03e7ccb3146321995",
      "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.1",
      "_shasum": "ffe1f67551dd055737de253337bfe853dfab1a6a",
      "_from": ".",
      "_npmVersion": "3.10.3",
      "_nodeVersion": "6.4.0",
      "_npmUser": {
        "name": "linusu",
        "email": "linus@folkdatorn.se"
      },
      "dist": {
        "shasum": "ffe1f67551dd055737de253337bfe853dfab1a6a",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/buffer-alloc-unsafe/-/buffer-alloc-unsafe-0.1.1.tgz",
        "integrity": "sha512-nWturlfJ2Sm7PpmMxoi3u7v4FqrscD+1dUEOItNZXEhuRGFPu8d/6S+otrDOdcgVs3BKa6EJEIEUCjpLZ9xaVg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQD6CY1Hr/CWEca+F1D3C98jh5T0MMP1HIjtBbSaFEVCvwIgFAjMwoDGxDMROPGHuOKB0pe+5wxIwH5wof1EFYy+1vI="
          }
        ]
      },
      "maintainers": [
        {
          "name": "linusu",
          "email": "linus@folkdatorn.se"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-16-east.internal.npmjs.com",
        "tmp": "tmp/buffer-alloc-unsafe-0.1.1.tgz_1471785933734_0.2103108037263155"
      },
      "directories": {}
    },
    "1.0.0": {
      "name": "buffer-alloc-unsafe",
      "version": "1.0.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",
        "ponyfill",
        "unsafe allocate"
      ],
      "gitHead": "07a2e0ff94f9675877c85ff7342ec4e12ca07abe",
      "description": "A [ponyfill](https://ponyfill.com) 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@1.0.0",
      "_shasum": "474aa88f34e7bc75fa311d2e6457409c5846c3fe",
      "_from": ".",
      "_npmVersion": "3.10.8",
      "_nodeVersion": "7.0.0",
      "_npmUser": {
        "name": "linusu",
        "email": "linus@folkdatorn.se"
      },
      "dist": {
        "shasum": "474aa88f34e7bc75fa311d2e6457409c5846c3fe",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.0.0.tgz",
        "integrity": "sha512-n+QQGRv2QNpMMj2LdqknYboDtLHqtr8Zt54YcHg7O9HpKAVNTyfiAARLRQetu4U9zI6o2wY7dbhXwrC+1Z/yHw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIE+QkOo+1qO3ulOogZWwEBUSj8mTpqK5peJgqmhnC0kxAiEAvpsxs1dlr8IvhB/R+OY68PFJYKa8Svsm0eKZ2YwfD0o="
          }
        ]
      },
      "maintainers": [
        {
          "name": "linusu",
          "email": "linus@folkdatorn.se"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/buffer-alloc-unsafe-1.0.0.tgz_1477938703241_0.46484857657924294"
      },
      "directories": {}
    },
    "1.1.0": {
      "name": "buffer-alloc-unsafe",
      "version": "1.1.0",
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/LinusU/buffer-alloc-unsafe.git"
      },
      "files": [
        "index.js"
      ],
      "scripts": {
        "test": "standard && node test"
      },
      "devDependencies": {
        "standard": "^7.1.2"
      },
      "keywords": [
        "allocUnsafe",
        "allocate",
        "buffer allocUnsafe",
        "buffer unsafe allocate",
        "buffer",
        "ponyfill",
        "unsafe allocate"
      ],
      "gitHead": "93c66c6a1e0f812a55128036004d6ff8a561fd98",
      "description": "A [ponyfill](https://ponyfill.com) 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@1.1.0",
      "_npmVersion": "5.6.0",
      "_nodeVersion": "10.2.1",
      "_npmUser": {
        "name": "linusu",
        "email": "linus@folkdatorn.se"
      },
      "dist": {
        "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==",
        "shasum": "bd7dc26ae2972d0eda253be061dba992349c19f0",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/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",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCEEe1FjI/LgrTP0gUhVGbyYutcbFie9Ph6e3fLuu8MWwIhAORAseFPhvTgeilXR0oWHZsOQaxCVBnytGYFnLzbi0We"
          }
        ]
      },
      "maintainers": [
        {
          "name": "linusu",
          "email": "linus@folkdatorn.se"
        }
      ],
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/buffer-alloc-unsafe_1.1.0_1527635919542_0.8786275682843983"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "buffer-alloc-unsafe",
  "time": {
    "modified": "2026-05-25T00:26:41.751Z",
    "created": "2016-08-18T19:53:51.482Z",
    "0.1.0": "2016-08-18T19:53:51.482Z",
    "0.1.1": "2016-08-21T13:25:35.176Z",
    "1.0.0": "2016-10-31T18:31:45.003Z",
    "1.1.0": "2018-05-29T23:18:40.146Z"
  },
  "readmeFilename": "readme.md",
  "homepage": "https://github.com/LinusU/buffer-alloc-unsafe#readme"
}