https://github.com/fabiospampinato/uint8-concat
Concatenate mutiple Uint8Arrays super efficiently.
https://github.com/fabiospampinato/uint8-concat
concat concatenate fast uint8
Last synced: 10 months ago
JSON representation
Concatenate mutiple Uint8Arrays super efficiently.
- Host: GitHub
- URL: https://github.com/fabiospampinato/uint8-concat
- Owner: fabiospampinato
- License: mit
- Created: 2023-02-13T01:04:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-17T00:05:50.000Z (over 1 year ago)
- Last Synced: 2025-08-22T23:26:24.541Z (11 months ago)
- Topics: concat, concatenate, fast, uint8
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Uint8 Concat
Concatenate mutiple Uint8Arrays super efficiently.
## Install
```sh
npm install uint8-concat
```
## Usage
```ts
import concat from 'uint8-concat';
// Let's concatenate some Uint8Arrays
const buffer1 = new Uint8Array ([ 1, 2, 3 ]);
const buffer2 = new Uint8Array ([ 4, 5, 6 ]);
const buffer3 = new Uint8Array ([ 7, 8, 9 ]);
concat ([ buffer1, buffer2, buffer3 ]); // => Uint8Array(9) [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
```
## License
MIT © Fabio Spampinato