paint-brush
Converting a Buffer to JSON and Utf8 Strings in Nodejsby@amanhimself
217,789 reads
217,789 reads

Converting a Buffer to JSON and Utf8 Strings in Nodejs

by Aman Mittal1mAugust 10th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Nodejs and browser based JavaScript differ because Node has a way to handle binary data even before the ES6 draft came up with <code class="markup--code markup--p-code">ArrayBuffer</code>. In Node, <code class="markup--code markup--p-code">Buffer</code> class is the primary data structure used with most I/O operations. It is a raw binary data that is allocated outside the V8 heap and once allocated, cannot be resized.

People Mentioned

Mention Thumbnail

Company Mentioned

Mention Thumbnail
featured image - Converting a Buffer to JSON and Utf8 Strings in Nodejs
Aman Mittal HackerNoon profile picture
Aman Mittal

Aman Mittal

@amanhimself

Developer, Tech Writer | React Native & Expo enthusiast | Personal blog: amanhimself.dev

Learn More
LEARN MORE ABOUT @AMANHIMSELF'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Aman Mittal HackerNoon profile picture
Aman Mittal@amanhimself
Developer, Tech Writer | React Native & Expo enthusiast | Personal blog: amanhimself.dev

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite