coreio
v0.8.3
Published
List and Model framework
Downloads
11
Readme
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')