Concept Flow - Buffer to string conversion
Create Buffer with data
Call toString() on Buffer
Specify encoding?
No→Use default 'utf8'
Yes
Convert bytes to string
Return string output
This flow shows how a Buffer is converted to a string by calling toString(), optionally specifying encoding, and returning the readable string.