AnyMux

Getting Started

Installation

pnpm add @anymux/s3

Basic Usage

import { S3FileSystem } from "@anymux/s3";

const fs = new S3FileSystem({
  bucket: "my-bucket",
  region: "us-east-1",
  prefix: "data/",
});

// List files
const entries = await fs.readDir("/");

// Read a file
const content = await fs.readFile("/hello.txt");

// Write a file
await fs.writeFile("/hello.txt", new TextEncoder().encode("Hello, S3!"));