Skip to content

Buffer() is deprecated in Node >8 there are new allocation methods now #3

@bnowrooz

Description

@bnowrooz

If you used this handy module, you will now receive these warnings:

DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead

Quick look at the Buffer documentation explains what:
https://nodejs.org/api/buffer.html#buffer_class_method_buffer_from_buffer

Why:
https://nodejs.org/api/buffer.html#buffer_what_makes_buffer_allocunsafe_and_buffer_allocunsafeslow_unsafe

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