Updating Buffer() that is deprecated and generating the following warning:
(node:15707) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
The solution was replace the new Buffer() lines for Buffer.from() as recommended.
Updating Buffer() that is deprecated and generating the following warning:
The solution was replace the
new Buffer()
lines forBuffer.from()
as recommended.