0.5.0 • Published 6 years ago

@tangojs/connector-local v0.5.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

tangojs-connector-local

dependencies dev dependencies npm version

In-memory connector for TangoJS.

Quick-start

Install via npm:

npm install tangojs-connector-local

Feed the connector with your data model:

import { LocalConnector } from 'tangojs-connector-local'

let model = {
  // ...
}

let connector = new LocalConnector(model)

Configure TangoJS to use this connector:

tangojs.setConnector(conector)

Data model

Data model is a structure that resembles TANGO devices hierarchy.

See the tangojs-connector-local-testmodel.coffee for a self-explanatory example.