Community

Buffer.slice() Won’t Error On Out-Of-Bounds Indices In Node.js

(Ben Nadel) Yesterday, when I was looking at streaming cached Buffers into HTTP responses in Node.js, I discovered something rather useful – Buffer.slice() won’t throw errors when you attempt to slice beyond the bounds of the Buffer. This makes iterating over the Buffer more straightforward as you c

Read More - Register for Free Membership