Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node convert buffer to string

// Convert Buffer to String in Node.JS
const someBuffer = Buffer.from("Hey", "utf-8");

someBuffer.toString(); // <= Use the toString() method
Source by melvingeorge.me #
 
PREVIOUS NEXT
Tagged: #node #convert #buffer #string
ADD COMMENT
Topic
Name
9+9 =