How to create a buffer space and write to it in Node.js?
Originally posted here!
Create buffer space
To create buffer space we can use the alloc() method in the global Buffer class in Node.js.
The method takes the number of bytes (integer) to allocate as the first argument.
The method returns a buffer ob...
melvingeorge-me.hashnode.dev3 min read