8000 GitHub - trepo/vagabond: A Javascript Graph Database
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

trepo/vagabond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagabond

A Javascript Graph Database backed by LevelUp and written in ES6.

Example

'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);
  });

Installation

  • npm - npm install vagabond-db

Testing/Coverage

npm test # runs all the tests using mocha

npm run coverage # istanbul code coverage output to ./coverage

Documentation

View at vagabond.trepo.io.

npm run doc # JSDoc output in ./doc

License

MIT

About

A Javascript Graph Database

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0