{"name":"pretty-tree","version":"0.2.0","description":"Make colorful trees out of JSON objects using archy","repository":{"type":"git","url":"git://github.com/mafintosh/pretty-tree.git"},"dependencies":{"archy":"0.0.2","chalk":"~0.4.0"},"keywords":["archy","colors","color","tree","terminal","cli","pretty","print","prettyprint"],"bugs":{"url":"https://github.com/mafintosh/pretty-tree/issues"},"homepage":"https://github.com/mafintosh/pretty-tree","_id":"pretty-tree@0.2.0","_shasum":"4c7a6e21a6a84e0f84d7c84596799fa5869aaff2","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"4c7a6e21a6a84e0f84d7c84596799fa5869aaff2","tarball":"http://registry-npm.ywwl.com/pretty-tree/download/pretty-tree-0.2.0.tgz","integrity":"sha512-RN555mu3YwX6wi9ypaq7T/SQJqbUOV9Ei1kMGqvYEPJ9nuxps7QTehwDhqrEO4dFTMwyoJn3mFL84kht8xhkaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIASIky0cVKiYkiA9NvUWAuaTN7HOLxBv4968fnuXXv6SAiEA6Vg2aMTV7PWBWnsGSpWtEP4xly87neixvJikF04GxO4="}],"size":12561,"noattachment":false,"key":"/pretty-tree/-/pretty-tree-0.2.0.tgz"},"directories":{},"readme":"# pretty-tree\n\nMake colorful trees out of JSON objects using [archy](https://github.com/substack/node-archy)\n\n\tnpm install pretty-tree\n\n## Usage\n\n``` js\nvar tree = require('pretty-tree');\n\nvar str = tree({\n\tlabel: '(root)', // the label of this node\n\tnodes: [{\n\t\tlabel: '(child)',\n\t\tleaf: {\n\t\t\thello: 'world',\n\t\t\thej: 'verden'\n\t\t}\n\t}]\n});\n\nconsole.log(str);\n```\n\nThe above example results in the following output:\n\n![example](https://raw.github.com/mafintosh/pretty-tree/master/example.png)\n\nThe node passed to tree can contain the following options\n\n``` js\ntree({\n\tlabel: '(child)', // an optional lable of this node\n\tleaf: {           // set this if you want to print an object\n\t\tkey: value,\n\t\t...\n\t},\n\tnodes: [          // or put in some child nodes\n\t\tchild_nodes_with_same_structure\n\t]\n})\n```\n\nIf you want to disable coloring (even when the terminal is a tty) use `tree.plain(options)`\n\n## License\n\nMIT","publish_time":1404606997371,"_cnpm_publish_time":1404606997371,"dist-tags":{"latest":"1.0.0"}}