cobox-group-store

3.0.1-alpha1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i cobox-group-store

Weekly Downloads

6

Version

3.0.1-alpha1

License

AGPL-3.0-or-later

Unpacked Size

132 kB

Total Files

7

Last publish

Collaborators

  • ameba23
  • kyphae