Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 369 Bytes

detect-new-buffer.md

File metadata and controls

9 lines (5 loc) · 369 Bytes

Detects instances of new Buffer(argument) where argument is any non-literal value (security/detect-new-buffer)

⚠️ This rule warns in the ✅ recommended config.

new Buffer() now emits a deprecation warning in Node.js.

More information: new Buffer(number) is unsafe