-
1.3.2 Stable
released this
2023-10-24 12:04:32 +01:00 | 18 commits to master since this releaseThis release adds support for using bufferStuff in the browser.
As a result of these efforts, bufferStuff now contains it's own implementation of Node's Buffer that is used when Buffer is not available.
This can be used in the browser or on node by callinggetBufferClass()
and then using it as normal as if you were usingBuffer
.For example, the following:
const buffer = Buffer.alloc(1);
Would become:
const buffer = getBufferClass().alloc(1);
Other than that usage should be 1:1 with Node's Buffer.
Downloads
-
Source code (ZIP)
2 downloads
-
Source code (TAR.GZ)
2 downloads
-
bufferStuff.browser.js
9 downloads · 22 KiB
-
bufferStuff.zip
6 downloads · 3.5 KiB
-
Source code (ZIP)