0.10.0 • Published 3 years ago

@es-git/idb-repo v0.10.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

idb-repo

This is part of the ES-Git project.

Install

npm install --save @es-git/idb-repo

Usage

This is an implementation of IRawRepo 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.

import Repo, {init} from '@es-git/idb-repo';

const db = await init('my-repository');

const repo = new Repo(db);

init(name? : string) : Promise<DB>

Call this function to create a database that can be used by the repository.

constructor(db : DB)

The constructor takes one argument, an open database.

0.10.0

3 years ago

0.9.0

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.0

6 years ago

0.3.3

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago