Integration with Browserify

To use with browserify, there is nothing special to do. Example:

main.js:

const Ogma = require('path/to/ogma');

const ogma = new Ogma({graph: {nodes: [{id: 0, color: 'blue'}]}});
console.log(ogma.getNode(0).color);

In the command line:

$ browserify main.js > bundle.js