npm.io
0.13.0 • Published 11 months ago

coreio

Licence
MIT
Version
0.13.0
Deps
8
Size
180 kB
Vulns
0
Weekly
0

CoreIO

CoreIO is a data model framework for backend and frontend.

Usage

CoreIO knows models and lists. Lists are simply collections of models. Each model represents a dataset.

import CoreIO from 'coreio'

const myModel = new CoreIO.Model('mymodel')

// store data in a model
myModel.set({
  title: 'Test item',
  description: 'Some test content...'
})

// get all data from a model
const data = myModel.get()

// get a specific dataset
const title = myModel.get('title')

Model

class Model(obj options)
List
class List (obj options)

Keywords