1.0.2 • Published 9 years ago

ohmygraph-madeapi-adapter v1.0.2

Weekly downloads
2
License
BSD-2-Clause
Repository
github
Last release
9 years ago

Adapter for for ohmygraph restgraph

Usage

<script type="text/javascript" src="ohmygraph-madeapi-adapter.min.js"></script>

Example

var adapter, fs, jref, json, opts;

adapter = require('ohmygraph-madeapi-adapter');
ohmygraph = require('ohmygraph');
json = .... // put your madeapi json string in here
opts                 = {};

json = adapter.parse(json, '1.0', opts);    // convert first
graph = ohmygraph.create( omg_graph, {} );  // lets go ohmygraph!