3 Render nested hierarchies `npm ls` style with unicode pipes.
5 [![browser support](http://ci.testling.com/substack/node-archy.png)](http://ci.testling.com/substack/node-archy)
7 [![build status](https://secure.travis-ci.org/substack/node-archy.png)](http://travis-ci.org/substack/node-archy)
12 var archy = require('archy');
25 nodes : [ 'hello', 'puny' ]
55 var archy = require('archy')
57 ## archy(obj, prefix='', opts={})
59 Return a string representation of `obj` with unicode pipe characters like how
62 `obj` should be a tree of nested objects with `'label'` and `'nodes'` fields.
63 `'label'` is a string of text to display at a node level and `'nodes'` is an
64 array of the descendents of the current node.
66 If a node is a string, that string will be used as the `'label'` and an empty
67 array of `'nodes'` will be used.
69 `prefix` gets prepended to all the lines and is used by the algorithm to
72 If `'label'` has newlines they will be indented at the present indentation level
73 with the current prefix.
75 To disable unicode results in favor of all-ansi output set `opts.unicode` to
80 With [npm](http://npmjs.org) do: