Search across all documentation pages
7 pages in this section.
What a Buffer actually is underneath the API, how it relates to TypedArrays and text encoding, and why Node needed a binary-data type before JavaScript had one - the mental model behind every other page in this section.
Learn Buffer basics with 7 Node.js examples. Allocate, create from strings, and slice Buffers without copying memory.
Learn how Node.js handles text encodings, focusing on UTF-8, TextEncoder/TextDecoder, and managing malformed input with explicit error handling.
Learn best practices for Node.js Buffers, including managing memory, handling large files with streams, and securely allocating buffers for sensitive data.
A single-page roundup of every highlight bullet from the 6 pages in the Buffers & Encoding section, grouped by source page so you can scan all 24 takeaways without opening each article individually.