Version 1
[yaffs-website] / node_modules / archy / examples / beep.js
1 var archy = require('../');
2 var s = archy({
3   label : 'beep',
4   nodes : [
5     'ity',
6     {
7       label : 'boop',
8       nodes : [
9         {
10           label : 'o_O',
11           nodes : [
12             {
13               label : 'oh',
14               nodes : [ 'hello', 'puny' ]
15             },
16             'human'
17           ]
18         },
19         'party\ntime!'
20       ]
21     }
22   ]
23 });
24 console.log(s);