buffer icon indicating copy to clipboard operation
buffer copied to clipboard

The buffer module from node.js, for the browser.

Results 70 buffer issues
Sort by recently updated
recently updated
newest added
trafficstars

On our project, we faced an issue of having a non-tranpiled `const` in `node_modules`. This is an issue for us as some of the devices we support end up not...

Hi. I have attempted to add Buffer to my browser extension in the name of replacing the deprecated `btoa` method so that I may submit a pull request to Buildspace,...

Hi thank you for this library. It makes my life easier :) I have some problem with this code. It tries to call `writeUint32LE`, but it seems to be undefined....

Why is the code above version 6.0 ES6? This leads to errors running on lower versions of browsers

Implements [Buffer.copyBytesFrom][1]. Also fixes a bug with `ERR_INVALID_ARG_TYPE`. [1]: https://nodejs.org/docs/latest/api/buffer.html#static-method-buffercopybytesfromview-offset-length

Node exposes aliases for the `writeBigUInt64BE` and `writeBigUInt64LE` functions as `writeBigUint64BE` and `writeBigUint64LE` respectively (the difference is the capitalization of the i). See the Node documentation [here](https://nodejs.org/api/buffer.html#bufwritebiguint64bevalue-offset). The other write...

Most string `write` functions (with the exception of `hexWrite`) were allocating arrays before copying them onto the buffer. This resulted in significant performance overhead. This PR modifies said functions to...

The `base64-js` package [has not been maintained](https://github.com/beatgammit/base64-js/issues/76) for more than 4 years, so it should probably be removed as a dependency.

help wanted

Not sure whether this helps performance, but subarrays only need augmenting pre-ES2016. Might be good to avoid it if we can. The code detects whether `TypedArray#subarray` calls the child class'...