@dstil/git-persistence

0.0.7 • Public • Published

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();
});

Readme

Keywords

none

Package Sidebar

Install

npm i @dstil/git-persistence

Weekly Downloads

2

Version

0.0.7

License

BSD-3-Clause

Last publish

Collaborators

  • dstil-admin
  • dstil-dev