mirror of https://github.com/jkjoy/sunpeiwen.git
25 lines
387 B
JavaScript
25 lines
387 B
JavaScript
|
var archy = require('../');
|
||
|
var s = archy({
|
||
|
label : 'beep',
|
||
|
nodes : [
|
||
|
'ity',
|
||
|
{
|
||
|
label : 'boop',
|
||
|
nodes : [
|
||
|
{
|
||
|
label : 'o_O',
|
||
|
nodes : [
|
||
|
{
|
||
|
label : 'oh',
|
||
|
nodes : [ 'hello', 'puny' ]
|
||
|
},
|
||
|
'human'
|
||
|
]
|
||
|
},
|
||
|
'party\ntime!'
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
});
|
||
|
console.log(s);
|