A [ponyfill](https://ponyfill.com) for `Buffer.allocUnsafe`.
npm install buffer-alloc-unsafeA ponyfill for Buffer.allocUnsafe.
Works as Node.js: v7.0.0
Works on Node.js: v0.10.0
``sh`
npm install --save buffer-alloc-unsafe
`js
const allocUnsafe = require('buffer-alloc-unsafe')
console.log(allocUnsafe(10))
//=>
console.log(allocUnsafe(10))
//=>
console.log(allocUnsafe(10))
//=>
allocUnsafe(-10)
//=> RangeError: "size" argument must not be negative
`
- size <Integer> The desired length of the new Buffer
Allocates a new non-zero-filled Buffer of size bytes. The size must bebuffer.kMaxLength
less than or equal to the value of and greater than or equalRangeError
to zero. Otherwise, a is thrown.
- buffer-alloc A ponyfill for Buffer.allocBuffer.fill
- buffer-fill A ponyfill for Buffer.from`
- buffer-from A ponyfill for