DeprecationWarning: Buffer () está en desuso debido a problemas de seguridad y usabilidad. Utilice los métodos buffer.alloc (), buffer.allocunsafe () o buffer.from ().
new Buffer(string, encoding) // Old
Buffer.from(string, encoding) // New
Emmanuel Mahuni