Node.js 18 🟢 Binary Data Manipulation with Buffers and TypedArrays
JavaScript was designed for text. Its strings are sequences of UTF-16 code units, its numbers are 64-bit floats, and its arrays are flexible collections that can hold anything. None of these types is suitable for binary data. When Node.js needs to read a file, receive a network packet, or generate a cryptographic hash, it works…