npm run test emits a DeprecationWarning because the library uses it for both implementation and unit tests.
(node:2104) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
This pull request replaces those deprecated methods with the new recommended ones.
Constructors new Buffer(string) and new Buffer(size) have been deprecated a long time ago.
npm run test
emits aDeprecationWarning
because the library uses it for both implementation and unit tests.This pull request replaces those deprecated methods with the new recommended ones.