A repository for your cobox-groups
Kieran Gibb 9633bd98e6
bump deps
1 year ago
test use replicator 1 year ago
README.md update README 1 year ago
index.js ensure ready is only called once on each group 1 year ago
package.json bump deps 1 year ago
util.js outline repository pattern 1 year ago

README.md

cobox-group-store

A repository for your cobox-groups. Adhere’s to a standard CRUD repository pattern.

API

const Store = require('cobox-group-store')
const storage = 'path/to/storage' // defaults to storage path defined in cobox-constants package
const store = Store(storage)

let groups = await store.all() // ensures groups loaded, then returns an array of cobox-groups

await store.findBy({ name, address })
await store.where({ name, address })
await store.create({ name, address })