# moped-sync-store-base

> Base class for moped-sync-stores

Latest version **0.0.4** (published 2014-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install moped-sync-store-base
pnpm add moped-sync-store-base
yarn add moped-sync-store-base
bun add moped-sync-store-base
```

## 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.4 |
| Published | 2014-07-29 |
| First published | 2014-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ForbesLindesay |
| Maintainers | forbeslindesay |
| Keywords | moped, moped-sync |

## Links

- npm: https://www.npmjs.com/package/moped-sync-store-base
- Repository: https://github.com/mopedjs/moped-sync-store-base
- Issues: https://github.com/mopedjs/moped-sync-store-base/issues
- npm.io page: https://npm.io/package/moped-sync-store-base

## Dependencies (3)

- [clone](https://npm.io/package/clone.md) ^0.1.17
- [promise](https://npm.io/package/promise.md) ^5.0.0
- [mongomatch](https://npm.io/package/mongomatch.md) ^0.1.0

## Recent versions

- 0.0.4 (latest) — 2014-07-29
- 0.0.3 — 2014-07-27
- 0.0.2 — 2014-07-27
- 0.0.1 — 2014-07-27

## README

# moped-sync-store-base

Base class for moped-sync-stores

[![Dependency Status](https://img.shields.io/gemnasium/mopedjs/moped-sync-store-base.svg)](https://gemnasium.com/mopedjs/moped-sync-store-base)
[![NPM version](https://img.shields.io/npm/v/moped-sync-store-base.svg)](https://www.npmjs.org/package/moped-sync-store-base)

## Installation

    npm install moped-sync-store-base

## Usage

```js
var BaseStore = require('moped-sync-store-base');

function MyStore() {
  BaseStore.call(this);
}
MyStore.prototype = Object.create(BaseStore.prototype);
MyStore.prototype.constructor = MyStore;

MyStore.prototype._getItem = function (collection, id) {
  // todo: implement me
};
MyStore.prototype._getInitial = function (filter) {
  // todo: implement me
};
MyStore.prototype._writeChanges = function (changes) {
  // todo: implement me
};
MyStore.prototype._getChanges = function (id, filter) {
  // todo: implement me
};
```

The base store ensures that all methods correctly return promises, and correctly handle filtering for getInitial and getChanges.

## License

  MIT

---
_Source: https://npm.io/package/moped-sync-store-base · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
