Introduction
Buffers hold raw data in Node.js. Converting a buffer to a string lets you read or show that data as text.
When you receive data from a file and want to read it as text.
When you get data from a network request and need to display it.
When you want to convert binary data into readable text for logging.
When working with streams that provide data as buffers but you want strings.
When decoding data from different character encodings like UTF-8 or ASCII.