A [ponyfill](https://ponyfill.com) for `Buffer.alloc`.
npm install buffer-allocA ponyfill for Buffer.alloc.
Works as Node.js: v7.0.0
Works on Node.js: v0.10.0
``sh`
npm install --save buffer-alloc
`js
const alloc = require('buffer-alloc')
console.log(alloc(4))
//=>
console.log(alloc(6, 0x41))
//=>
console.log(alloc(10, 'linus', 'utf8'))
//=>
`
- size <Integer> The desired length of the new Bufferfill
- <String> | <Buffer> | <Integer> A value to pre-fill the new Buffer with. Default: 0encoding
- <String> If fill is a string, this is its encoding. Default: 'utf8'
Allocates a new Buffer of size bytes. If fill is undefined, the Buffer will be zero-filled.
- buffer-alloc-unsafe A ponyfill for Buffer.allocUnsafeBuffer.fill
- buffer-fill A ponyfill for Buffer.from`
- buffer-from A ponyfill for