Skip to content

Using Buffer is deprecated #72

Description

@Sawtaytoes

In newer versions of Node.js, using new Buffer is now deprecated.
https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

Instead, you should use new Buffer.alloc(size) or new Buffer.from('c469ea095c6adf13', 'hex').
Changing it might cause compatibility issues in older versions of Node.js though. You can always write around it, but you could also upgrade the minimum version.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions