Skip to content

Conversation

@nlko
Copy link

@nlko nlko commented Nov 10, 2020

To remove this deprecation warning (DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.) of the example, I replaced new Buffer(…) with Buffer.from(…).

To remove this deprecation warning (`DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.`) of the example, I replaced `new Buffer(…)` with `Buffer.from(…)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant