Work with raw binary data when strings and normal JavaScript objects are not enough.
A Buffer is a Node.js data structure designed for working with raw binary data. Unlike normal JavaScript strings, buffers store bytes and are commonly used when dealing with files, network connections, streams, and other data that does not naturally exist as text.
You will often see buffers when reading a file, receiving data over a socket, or processing an uploaded image or video. Understanding how buffers represent bytes and how encoding converts between bytes and text helps you work with Node.js I/O correctly.
What you'll walk away knowing