{"name":"treeify","version":"0.3.0","author":{"name":"Luke Plaster","email":"notatestuser@gmail.com"},"description":"converts a JS object into a nice, visible tree structure for the console","scripts":{"test":"./node_modules/vows/bin/vows --spec --isolate"},"main":"./treeify","repository":{"type":"git","url":"https://github.com/notatestuser/node-treeify.git"},"keywords":["object","tree","print","console","pretty"],"devDependencies":{"vows":"git://github.com/Filirom1/vows.git#expect"},"licenses":[{"type":"MIT","url":"http://lp.mit-license.org/"}],"engines":{"node":">=0.8"},"readme":"node-treeify\n============\n\n_treeify_ converts a JS object into a nice, visible depth-indented tree for console printing. The structure \ngenerated is similar to what you get by running the ```tree``` command on Unixy platforms.\n\n```\n{\n    oranges: {                                                  \n        'mandarin': {                                          ├─ oranges\n            clementine: null,                                  │  └─ mandarin\n            tangerine: 'so cheap and juicy!'        -=>        │     ├─ clementine\n        }                                                      │     └─ tangerine: so cheap and juicy!\n    },                                                         └─ apples\n    apples: {                                                     ├─ gala\n        'gala': null,                                             └─ pink lady\n        'pink lady': null\n    }\n}\n```\n\nIt also works well with larger nested hierarchies such as file system directory trees.\nIn fact, the ```fs_tree``` example does a pretty good job of imitating ```tree```. Try it out!\n\nSee the other included examples or the test suite for usage scenarios.\n\nUsage\n-----\n\nFirst you'll want to run this command in your project's root folder:\n```\n$ npm install treeify\n```\n\nThen proceed to use it in your project:\n```js\nvar treeify = require('treeify');\nconsole.log(\n   treeify.asTree({\n      apples: 'gala',      //  ├─ apples: gala\n      oranges: 'mandarin'  //  └─ oranges: mandarin\n   }, true)\n);\n```\n\nThe methods exposed to you are as follows, in a strange kind of signature notation:\n### asLines()\n```js\ntreeify.asLines(obj, showValues (boolean), lineCallback (function))\n```\n### asTree()\n```js\ntreeify.asTree(obj, showValues (boolean), hideFunctions (boolean)): String\n```\n\nRunning the tests\n-----------------\n\nThere's a pretty extensive suite of Vows tests included.\n\n```\n$ npm test\n```\n","_id":"treeify@0.3.0","dist":{"shasum":"7d5e14dad59748a3df00315aef2cd42b15aa0f0d","tarball":"http://registry-npm.ywwl.com/treeify/download/treeify-0.3.0.tgz","integrity":"sha512-zA9dmTEu8sXeZcUgDufH2qwgiwQA2Lc4UGjpzAbViqjegb/M4lnYLiUlamj03mYmUZDmAY2Gjt1vC67hlPVSUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHX8fU7Rt2vTCEHJ2kb1KoKSBWYvZZJN0rgmHhijfJDhAiBiNFeqYB6yQyw0VYJUzLh/tBcxRriiNvbm+z+vrpQ5Rg=="}],"size":5185,"noattachment":false,"key":"/treeify/-/treeify-0.3.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"notatestuser","email":"notatestuser@gmail.com"},"maintainers":[{"name":"notatestuser","email":"notatestuser@gmail.com"}],"directories":{},"publish_time":1356306296084,"_cnpm_publish_time":1356306296084,"dist-tags":{"latest":"1.1.0"}}