JSPM

uint8-concat

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2002
  • Score
    100M100P100Q115908F
  • License MIT

Concatenate mutiple Uint8Arrays super efficiently.

Package Exports

  • uint8-concat

Readme

Uint8 Concat

Concatenate mutiple Uint8Arrays super efficiently.

Install

npm install uint8-concat

Usage

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