Closed Qard closed 5 years ago
The new Buffer(string|number) form was deemed an attack vector and deprecated. All Node.js v6.x+ versions have the .from(), .alloc() and .allocUnsafe() family of Buffer methods now.
new Buffer(string|number)
.from()
.alloc()
.allocUnsafe()
thanks!
The
new Buffer(string|number)
form was deemed an attack vector and deprecated. All Node.js v6.x+ versions have the.from()
,.alloc()
and.allocUnsafe()
family of Buffer methods now.