zero-buffer

1.0.1 • Public • Published

zero-buffer

This module allows you to zero fill buffer allocations.

This module is only supported in Node.js >= v4.x

Without this module

$ node -p "new Buffer(4200).toString()" | strings
allocate
toString
E H8)
prototype@
n6U]
~2 $
nction
this
n6U]
arguments
size
~2 $
evalfine
undefined
.result

With this module

$ node -r zero-buffer -p "new Buffer(4200).toString()" | strings

Changelog

  • 1.0.1 - Now only zeros when an number is given

Readme

Keywords

Package Sidebar

Install

npm i zero-buffer

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • baens
  • majgis