# @dstil/git-persistence

> Git-based storage solution for lowdb.

Latest version **0.0.7** (published 2017-02-01) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @dstil/git-persistence
pnpm add @dstil/git-persistence
yarn add @dstil/git-persistence
bun add @dstil/git-persistence
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2017-02-01 |
| First published | 2016-07-26 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+8 in 1 direct dependencies) |
| Install scripts | no |
| Author | DSTIL |
| Maintainers | dstil-admin, dstil-dev |

## Links

- npm: https://www.npmjs.com/package/@dstil/git-persistence
- Repository: https://github.com/dstil/git-persistence
- Homepage: https://github.com/dstil/git-persistence#readme
- Issues: https://github.com/dstil/git-persistence/issues
- npm.io page: https://npm.io/package/@dstil/git-persistence

## Dependencies (2)

- [tempfile](https://npm.io/package/tempfile.md) 1.1.1
- [simple-git](https://npm.io/package/simple-git.md) 1.43.0

## Recent versions

- 0.0.7 (latest) — 2017-02-01
- 0.0.6 — 2016-08-15
- 0.0.5 — 2016-08-11
- 0.0.4 — 2016-08-08
- 0.0.3 — 2016-08-05
- 0.0.2 — 2016-08-03
- 0.0.1 — 2016-07-26

## README

# git-persistence

Git-based storage solution for [lowdb](https://github.com/typicode/lowdb).

## Installation

Install the package with NPM:

```bash
$ npm install @dstil/git-persistence
```

## Usage

Example:

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

---
_Source: https://npm.io/package/@dstil/git-persistence · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
