idb-repo
This is part of the ES-Git project.
Install
```bash npm install --save @es-git/idb-repo ```Usage
This is an implementation ofIRawRepo
that uses IndexedDB as a storage mechanism. For better async support it is implemented using IDB. This is meant to be used in browsers.
In addition to exporting an implementation of IRawRepo
this package also exports an init
method.
```ts
import Repo, {init} from '@es-git/idb-repo';
const db = await init('my-repository');
const repo = new Repo(db);
```