# Getting Started

> Install and configure @anymux/s3.

Source: https://anymux-docs.n.yatsyk.com/docs/s3/getting-started

# Getting Started

## Installation

```bash
pnpm add @anymux/s3
```

## Basic Usage

```ts
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!"));
```
