DEP0005: Buffer() 构造函数


类型: 运行时(支持 --pending-deprecation

    Type: Runtime (supports --pending-deprecation)

    The Buffer() function and new Buffer() constructor are deprecated due to API usability issues that can lead to accidental security issues.

    As an alternative, use one of the following methods of constructing Buffer objects:

    Without --pending-deprecation, runtime warnings occur only for code not in node_modules. This means there will not be deprecation warnings for Buffer() usage in dependencies. With --pending-deprecation, a runtime warning results no matter where the Buffer() usage occurs.