tj / punt

Elegant UDP messaging for nodejs
344 stars 54 forks source link

Stop using deprecated Buffer constructor #12

Closed Qard closed 5 years ago

Qard commented 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.

tj commented 5 years ago

thanks!