24 lines
387 B
JavaScript
24 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);
|