{"name":"treeify","version":"0.4.2","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"},"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.6"},"readme":"node-treeify\n============\n\n[![Build Status](https://travis-ci.org/notatestuser/node-treeify.png?branch=master)](https://travis-ci.org/notatestuser/node-treeify)\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-----\nThe methods exposed to you are as follows, in a strange kind of signature notation:\n\n### asLines()\n```js\ntreeify.asLines(obj, showValues (boolean), [hideFunctions (boolean),] lineCallback (function))\n// NOTE: hideFunctions is optional and may be safely omitted - this was done to ensure we don't break uses of the previous form\n```\n### asTree()\n```js\ntreeify.asTree(obj, showValues (boolean), hideFunctions (boolean)): String\n```\n\nWait, what?\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\nRunning the tests\n-----------------\nThere's a pretty extensive suite of Vows tests included.\n```\n$ npm test\n```\n","_id":"treeify@0.4.2","dist":{"shasum":"86a362905453caba41dfdda367b37bdd3b9030b8","tarball":"http://registry-npm.ywwl.com/treeify/download/treeify-0.4.2.tgz","integrity":"sha512-H+TCZnqbjUrWC1I2QY764L2nxfAWqrq19W1IxNEFgRT8Thd3R+gcNJZaudEXh+MMHfZc5VSZu1tUyfZgnOfhnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH98YXzxf8flH/Ud18p50ZhwRJyEjGXZh4H4Bt+B4AgeAiApMApE3VwGhLAXe2ogdg5mbd6PtbnTfWyrJ2g9M/a12g=="}],"size":5661,"noattachment":false,"key":"/treeify/-/treeify-0.4.2.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"notatestuser","email":"notatestuser@gmail.com"},"maintainers":[{"name":"notatestuser","email":"notatestuser@gmail.com"}],"directories":{},"publish_time":1356627049616,"_cnpm_publish_time":1356627049616,"dist-tags":{"latest":"1.1.0"}}