Skip to content

Commit 30a94ee

Browse files
committed
Add readme for node.js demos
1 parent 6a83be5 commit 30a94ee

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

demo/node/Readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Use of JSROOT with Node.js
2+
3+
JSROOT is provided as npm module and always can be installed as:
4+
5+
npm install jsroot
6+
7+
After this JSROOT functionality can be used from Node.js scripts via:
8+
9+
var jsroot = require("jsroot");
10+
11+
Main motivation to use JSROOT from Node.js is creation of SVG files.
12+
Example <makesvg.js> you will find in this directory. Just call it:
13+
14+
node makesvg.js
15+
16+
JSROOT also provides possibility to read arbitrary TTree data without involving
17+
any peace of native ROOT code. <tree.js> demonstrate such example:
18+
19+
node tree.js

0 commit comments

Comments
 (0)