{"name":"archy","version":"0.0.2","description":"render nested hierarchies `npm ls` style with unicode pipes","main":"index.js","directories":{"lib":".","example":"example","test":"test"},"devDependencies":{"tap":"~0.2.3"},"scripts":{"test":"tap test"},"repository":{"type":"git","url":"git://github.com/substack/node-archy.git"},"keywords":["hierarchy","npm ls","unicode","pretty","print"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT/X11","engine":{"node":">=0.4"},"_npmUser":{"name":"substack","email":"mail@substack.net"},"_id":"archy@0.0.2","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"910f43bf66141fc335564597abc189df44b3d35e","tarball":"http://registry-npm.ywwl.com/archy/download/archy-0.0.2.tgz","integrity":"sha512-8mMsetjXv4pCPTrMbPPO2cxy9vzJn2jwbd+ug+mf8fEUZG2E78Vo5erJMjrnGuLTKqOLtS5ulFHJSfg1yaCjxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfSjBKlXpateihZoXB3/l9sJTsSujanSXRuBDDFe7cDAIgYBJZCPklv3vm0AOTNjT/FHH+8ijCe5HizViyXPzCq0s="}],"size":2236,"noattachment":false,"key":"/archy/-/archy-0.0.2.tgz"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"readme":"# archy\n\nRender nested hierarchies `npm ls` style with unicode pipes.\n\n[![browser support](http://ci.testling.com/substack/node-archy.png)](http://ci.testling.com/substack/node-archy)\n\n[![build status](https://secure.travis-ci.org/substack/node-archy.png)](http://travis-ci.org/substack/node-archy)\n\n# example\n\n``` js\nvar archy = require('archy');\nvar s = archy({\n  label : 'beep',\n  nodes : [\n    'ity',\n    {\n      label : 'boop',\n      nodes : [\n        {\n          label : 'o_O',\n          nodes : [\n            {\n              label : 'oh',\n              nodes : [ 'hello', 'puny' ]\n            },\n            'human'\n          ]\n        },\n        'party\\ntime!'\n      ]\n    }\n  ]\n});\nconsole.log(s);\n```\n\noutput\n\n```\nbeep\n├── ity\n└─┬ boop\n  ├─┬ o_O\n  │ ├─┬ oh\n  │ │ ├── hello\n  │ │ └── puny\n  │ └── human\n  └── party\n      time!\n```\n\n# methods\n\nvar archy = require('archy')\n\n## archy(obj, prefix='', opts={})\n\nReturn a string representation of `obj` with unicode pipe characters like how\n`npm ls` looks.\n\n`obj` should be a tree of nested objects with `'label'` and `'nodes'` fields.\n`'label'` is a string of text to display at a node level and `'nodes'` is an\narray of the descendents of the current node.\n\nIf a node is a string, that string will be used as the `'label'` and an empty\narray of `'nodes'` will be used.\n\n`prefix` gets prepended to all the lines and is used by the algorithm to\nrecursively update.\n\nIf `'label'` has newlines they will be indented at the present indentation level\nwith the current prefix.\n\nTo disable unicode results in favor of all-ansi output set `opts.unicode` to\n`false`.\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install archy\n```\n\n# license\n\nMIT\n","publish_time":1331248186988,"_cnpm_publish_time":1331248186988,"dist-tags":{"latest":"1.0.0"}}