multi_line.js 414 B

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