We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1293beb commit 42f817dCopy full SHA for 42f817d
README.md
@@ -41,6 +41,21 @@ Diff between two versions of a graph stored in git
41
42
fbp-git-diff master otherbranch ./graphs/MyGraph.json
43
44
+## API Usage
45
+
46
+fbp-diff also provides a JavaScript API.
47
48
+ var fbpDiff = require('fbp-diff');
49
+ var options = {
50
+ // fromFormat: 'object', // don't parse fromGraph, it is a JS object of a graph (default)
51
+ // toFormat: 'json', // parse toGraph .json format
52
+ format: 'fbp' // specify toFormat and fromFormat in one go
53
+ };
54
+ var fromGraph = "";
55
+ var toGraph = "";
56
+ var diff = fbpDiff.diff(fromGraph, toGraph, options);
57
+ console.log(diff);
58
59
## TODO
60
61
Also see [./doc/braindump.md](./doc/braindump.md)
0 commit comments