{"name":"tree-to-string","version":"1.1.1","description":"Convert a tree structure into a human friendly string","main":"index.js","dependencies":{},"devDependencies":{"standard":"^11.0.1"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/tree-to-string.git"},"scripts":{"test":"standard"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/tree-to-string/issues"},"homepage":"https://github.com/mafintosh/tree-to-string","gitHead":"578eba2fa429ae5e880c2491b05f348175928182","_id":"tree-to-string@1.1.1","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-m+I/v8+3L+6ENDjlS4wW6cjeoChkwD6DwrrscaROsjEntFodU55VRIc/QE0YmAzdKW5Ajg6nbheLeK0u1NqKzw==","shasum":"988feb21efd56c9f4bbaf895cecf8e769f36c0d0","tarball":"http://registry-npm.ywwl.com/tree-to-string/download/tree-to-string-1.1.1.tgz","fileCount":6,"unpackedSize":7324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbK6iWCRA9TVsSAnZWagAAHugQAKH8SDYG+r0YwSmFYYaJ\nKU7ZIixo0A/bIvwXbac+R0+VpljfcpymgaK+r2lrfFff3EPTobnpjnZ6+Tti\nuEJf7pgUCt+waKVRJb0YhmI/AyfSw9y6jk+ZaeTVy9ovW8o9UU43Lkfg+Mqt\nKos/edaN9mt4jTs9rXWz+OUt/Da3zB08cYyegdvpM+P2Ahvnw5kSnkqePKB9\nh28eW2IK2bdmqZlA1aUdcjerEyH3uEledSROxMDuZAXp0RRJdM4yJK0fLLLh\nN0jWsL0LyBiwDkr38l04ODl+/xfsxXIV160Vsg+k3qn14YHXAArq8lvPputd\nn0U8CgnLi9D9tqXv1IuzxKhDFhGv5XSJ9I2vO82EvQonTNbkA6jdSlbXlCWL\noL/m5WMpk7bYVczlxOQlsaC9IuvEQAjnIkwukKLy+nCJcHGzVJdr5oObYfQ5\n+MZiLYx/lNqnsZxZ3o94pup/2mN3rWhy7Fygpf5krTn+ClQfUoTKEVxdRksA\nR8x2u6m4NhT8hMijpvMhExaTNeiL1evVR8Vz1X3Eob6Sq3gwHNsC6JzPJauw\nW/DkslmSrn5VJKD0x8hbEGqp4kLpKsw90IM9pwfriQg0RjN4oKJB7zcSTx+O\nBSBS86lnUy8IXpQie0+lbiwwDZfvJ3S7ypaHYQSfn5sVwnBuo4ldjkOIRUwP\nYuM4\r\n=PDS1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPycy5hHk8TJJkp4ad/fbelEPmHcEaK+4xcGXMHpo4+AIgYQMo30CvCQjCCJ1afjmbMJafCY9ywZpYZZfgtu229ZU="}],"size":2895,"noattachment":false,"key":"/tree-to-string/-/tree-to-string-1.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-to-string_1.1.1_1529587862756_0.4413037057388127"},"_hasShrinkwrap":false,"readme":"# tree-to-string\n\n\n```\nnpm install tree-to-string\n```\n\n## Usage\n\n```js\nconst treeToString = require('tree-to-string')\n\nconst tree = {\n  value: [7],\n  children: [{\n    value: [3, 5],\n    children: [{\n      value: [2]\n    }, {\n      value: [4]\n    }, {\n      value: [6]\n    }]\n  }, {\n    value: [8]\n  }]\n}\n\nconsole.log(treeToString(tree))\n```\n\nRunning the above prints something similar to\n\n```\n[ 2 ]─┐\n      │\n[ 4 ]─┼─[ 3, 5 ]─┐\n      │          │\n[ 6 ]─┘          ├─[ 7 ]\n                 │\n           [ 8 ]─┘\n```\n\n## API\n\n#### `const str = treeToString(tree, [format])`\n\nConverts a tree to a human friendly string.\nThe tree should have a layout similar to this\n\n```js\n{\n  value: someJsObject,\n  children: [tree, ...]\n}\n```\n\nFormat defaults to `util.inspect`. Change this to your\nown method that pretty prints your object if your prefer.\n\n## License\n\nMIT\n","publish_time":1529587862836,"_cnpm_publish_time":1529587862836,"dist-tags":{"latest":"1.1.1"}}