Goodbye, Node.js Buffer
sindresorhus.com
Goodbye, Node.js Buffer
1–10 of 103 posts
Re: Goodbye, Node.js Buffer
#2Re: Goodbye, Node.js Buffer
#3Re: Goodbye, Node.js Buffer
#4Re: Goodbye, Node.js Buffer
#5Re: Goodbye, Node.js Buffer
#6I find buffer useful for its conversion functions to/from different encodings, e.g., `Buffer.from(data, 'hex')` or `Buffer.toString('base64')`. Is there a good way to do this with `Uint8Array`?
Re: Goodbye, Node.js Buffer
#7I recently ran into an issue where I needed to store an Uint8Array as a BYTEA in postgres. When i stored it directly, the Uint8Array would be modified and made bigger. When i converted it to a buffer and then stored it, it would work. Still not sure why that was the case.
Re: Goodbye, Node.js Buffer
#8I can see how the Buffer behavior here would be preferable in cases where performance is important or memory constrained environments.
Re: Goodbye, Node.js Buffer
#9Re: Goodbye, Node.js Buffer
#10It's good to see that people care about native JS standards. I'm a bit concerned how Bun seems to be adding their own proprietary APIs to their JS runtime, and can't help feeling that it could be intentional vendor lock-in. Since they are venture backed I'm sure they want some ROI from the project eventually and if they start charging money it will be harder to switch away due to the proprietary APIs without refactor…