# API Reference

> API reference for @anymux/indexeddb.

Source: https://anymux-docs.n.yatsyk.com/docs/indexeddb/api

# API Reference

## `IndexedDbFileSystem`

Implements `IFileSystem` using IndexedDB as the backing store.

### Constructor

```ts
new IndexedDbFileSystem(options: IndexedDbFileSystemOptions)
```

### Options

| Option   | Type     | Description             |
| -------- | -------- | ----------------------- |
| `dbName` | `string` | IndexedDB database name |

### Methods

Implements all `IFileSystem` methods: `readFile`, `writeFile`, `readDir`, `stat`, `mkdir`, `rm`, `exists`.
