From cf813a5d4d707d4cdadbe1e2191f51a7bd75205e Mon Sep 17 00:00:00 2001 From: Javi Agenjo Date: Thu, 8 Mar 2018 12:36:35 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 46b929a4d..bf03c1766 100755 --- a/README.md +++ b/README.md @@ -76,6 +76,27 @@ LiteGraph.registerNodeType("basic/sum", MyAddNode ); ``` +## Server side + +It also works server-side using Node although some nodes do not work in server (audio, graphics, input, etc). + +```js +var LiteGraph = require("./litegraph.js").LiteGraph; + +var graph = new LiteGraph.LGraph(); + +var node_time = LiteGraph.createNode("basic/time"); +graph.add(node_time); + +var node_console = LiteGraph.createNode("basic/console"); +node_console.mode = LiteGraph.ALWAYS; +graph.add(node_console); + +node_time.connect( 0, node_console, 1 ); + +graph.start() +``` + ## Projects using it From 18c82e3ae4965843a1224a5dedaa10b03447cf3b Mon Sep 17 00:00:00 2001 From: Javi Agenjo Date: Thu, 8 Mar 2018 12:40:47 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bf03c1766..e0a67159b 100755 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ It can be integrated easily in any existing web applications and graphs can be r ## Installation +I recommend to download the build/litegraph.js file which is more updated than the npm package. + ``` npm install litegraph.js ```