0.0.7 • Published 7 years ago

@dstil/git-persistence v0.0.7

Weekly downloads
1
License
BSD-3-Clause
Repository
github
Last release
7 years ago

git-persistence

Git-based storage solution for lowdb.

Installation

Install the package with NPM:

$ npm install @dstil/git-persistence

Usage

Example:

import low from "lowdb";
import storage from "@dstil/git-persistence";

low("git@github.com:dstil/test.git", { storage }).then(db => {
  // Read value from remote Git repository.
  let posts = db.get("posts").value();

  // Write value to remote Git repository.
  db.get("posts").push({ id: 1, title: "Test" }).value();
});
0.0.7

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago