A Javascript Graph Database backed by LevelUp and written in ES6.
'use strict';
import Graph from 'vagabond-db';
let graph = new Graph({
db: LevelDown, // Defaults to Memdown
name: 'my-graph' // Defaults to a new UUIDv4
});
graph.init()
.then(graph => {
return graph.addNode('1234', 'label');
})
.then(node => {
return node.setProperty('key', 'value');
})
.catch(error => {
console.error(error);
});
- npm -
npm install vagabond-db
npm test # runs all the tests using mocha
npm run coverage # istanbul code coverage output to ./coverage
View at vagabond.trepo.io.
npm run doc # JSDoc output in ./doc