node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

graphcalc-api

graphcalc-api Build Status

A RESTful API for graph-calc.

Installation: npm install graphcalc-api

Usage:

var graphCalcApiServer = require('graphcalc-api');
var MyGraph = require('./graph'); // you graphcalc implementation 
 
var graph = graphCalcApiServer({
  port: 8080,
  graph: new MyGraph()
});