new Buffer() has been deprecated in Node.js due to surprising behaviour that can lead to major security vulnerabilities if you aren't fully aware how arguments of different type will be handled.
The example code in the readme should use Buffer.from() to avoid promoting the use of new Buffer() in userland code.
new Buffer()
has been deprecated in Node.js due to surprising behaviour that can lead to major security vulnerabilities if you aren't fully aware how arguments of different type will be handled.The example code in the readme should use
Buffer.from()
to avoid promoting the use ofnew Buffer()
in userland code.