JSPM

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

Package Exports

  • @zarrita/storage
  • @zarrita/storage/fetch
  • @zarrita/storage/fs
  • @zarrita/storage/ref
  • @zarrita/storage/zip

Readme

@zarrita/storage

NPM License

Storage backends for Zarr in the browser, Node.js, Bun.js, and Deno.

Installation

npm install @zarrita/storage@next

Usage

import * as zarr from "zarrita";
import { FetchStore, FileSystemStore } from "@zarrita/storage";

let remoteStore = new FetchStore("http://localhost:8080/data.zarr");
let arr = await zarr.open(remoteStore, { kind: "array" });

let localStore = new FileSystemStore("data.zarr");
await zarr.create(localStore, {
    data_type: "int64",
    shape: [100, 100],
    chunk_shape: [10, 10],
});

Read the documentation to learn more.

License

MIT