JSPM

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

Package Exports

  • @zarrita/typedarray

Readme

@zarrita/typedarray

NPM License

ArrayBuffer-backed containers for zarrita.js.

Installation

npm install @zarrita/typedarray@next

Usage

import {
    BoolArray,
    ByteStringArray,
    UnicodeStringArray,
} from "@zarrita/typedarray";

let arrs = [
    new BoolArray([true, false, true]),
    new UnicodeStringArray(5, ["hello", "world"]),
    new ByteStringArray(5, ["hello", "world"]),
];

let bytes = arrs.map((a) => new Uint8Array(arr.buffer));

Read the documentation to learn more.

License

MIT