{"name":"object-treeify","version":"1.1.24","description":"Stringify Object as tree structure","main":"lib/index.js","scripts":{"clean":"rm -rf lib","build":"npx babel src --out-dir lib --copy-files --include-dotfiles --config-file ./.babelrc","build-clean":"yarn run clean && yarn run build","test-simple":"nyc mocha \"./test/**/*.spec.js\"","test":"yarn run clean && yarn run gardener && yarn run test-simple","coveralls":"node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info","semantic-release":"yarn run build-clean && npx semantic-release","gardener":"node gardener","docker":"docker run --net host -u`id -u`:`id -g` -v $(pwd):/user/project -v ~/.aws:/user/.aws -v ~/.npmrc:/user/.npmrc -w /user/project -it --entrypoint /bin/bash","t":"yarn test","ts":"yarn run test-simple","tsv":"yarn run test-simple --verbose","u":"yarn upgrade --latest --force","i":"yarn install --frozen-lockfile"},"repository":{"type":"git","url":"git+https://github.com/blackflux/object-treeify.git"},"keywords":["object","tree","print","console","pretty","treeify","stringify","visualize","convert","string","debug"],"author":{"name":"Lukas Siemon"},"license":"MIT","bugs":{"url":"https://github.com/blackflux/object-treeify/issues"},"homepage":"https://github.com/blackflux/object-treeify#readme","devDependencies":{"@babel/cli":"7.8.4","@babel/core":"7.8.7","@babel/plugin-proposal-object-rest-spread":"7.8.3","@babel/register":"7.8.6","@blackflux/eslint-plugin-rules":"1.3.24","@blackflux/robo-config-plugin":"3.1.0","babel-eslint":"10.1.0","chai":"4.2.0","coveralls":"3.0.9","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-plugin-import":"2.20.1","eslint-plugin-json":"2.1.0","eslint-plugin-markdown":"1.0.2","eslint-plugin-mocha":"6.3.0","js-gardener":"2.0.137","nyc":"15.0.0","semantic-release":"17.0.4"},"nyc":{"tempDir":"./coverage/.nyc_output","report-dir":"./coverage","check-coverage":true,"per-file":false,"lines":100,"statements":100,"functions":100,"branches":100,"include":["**/*.js"],"reporter":["lcov","text-summary"],"require":["@babel/register"],"extension":[],"cache":true,"all":true,"babel":true,"exclude":["gardener.js","node_modules/*","coverage/*","lib/*"]},"licenses":[{"type":"MIT","url":"https://github.com/blackflux/object-treeify/blob/master/LICENSE"}],"engines":{"node":">= 10"},"dependencies":{},"gitHead":"e26cdd2dad68311186756c446d9bc69188acb3f2","_id":"object-treeify@1.1.24","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-ttlIN3MoqnhevarRtDNELvNjQ85Wguq2zSkR2N9DGFM3pFWMjsz7tSqbjX7lx16BmFwLOwBa3w0TY1jJajklFg==","shasum":"ff3be5a93635d0f79af5e8a06d08c9bd3600e1a6","tarball":"http://registry-npm.ywwl.com/object-treeify/download/object-treeify-1.1.24.tgz","fileCount":4,"unpackedSize":16645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebAKZCRA9TVsSAnZWagAAFTgQAIC0IbLbnlefI9v8NCQE\nBS9HK6LRK94WSkM2B/JjaSw5B4Mu8DTfSrfNlZrYt0VDzt+NolfOZm4tezwl\n9IWSKzQO+wL4/mrLgxrnhiZ4YUm9Z8qeCZXMoDqbJEd4dgbcfUEohlnlJZtd\n2n15M6L5lNPgtN5Lo73N6hDr1RKfsS+C8OoGxh/gRu+9ki4rC8eX2zXFP+xH\nC/k+dLJFBNiKXh6CTB0K1otqvo+/HswsjcePZMk24JXxRMy5ktjKc7dc6u5V\nCFFwGRax5BsQ7k5AdvW/k5f5x5S8y8RMJpajSN1TNB+eoBaP2Jqe70kkKIyb\nMDfayuRiEgnhBafbb6btx8HkWwjVoNEG8ODMrZlKxnU93ftC+W37mqsna5hl\ncMYRseMSlwaQ8U2Z0vL7KQSvL3in6gVC54hHAVBXwCzV4pJOZM1SwumOiPUV\n9GogJOz9Isp6eXgd/kn5+R/7Jucl5DhaDcDATtqXzlBwvV2URK0nTv3HZ0XC\nJ4S915+fykxdAFClgtfp5Pc1b3vld4pfpXDnkZ2c30+wdLozciJHxgGqtr/S\nK2BnChB53AoNMuZUGb9wI/7dBf3mAtsRZpOmCXoMyW66On1oVKSbZRAOzxwL\nCHl/tMitaQLk5rp+TFYKExRce36LHLOaaDT/vI67P/CNm4CBtq+//zNosWtL\nICg3\r\n=TzXk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDY3JVi4NGtpyIW08NtvM95s+Jx/fLCSeEBXo9nlJbmRgIhAI/v6mNjtQGJaqhikEDxlryCRTbRmzzkDcIfHCD5ze5A"}],"size":6784,"noattachment":false,"key":"/object-treeify/-/object-treeify-1.1.24.tgz"},"maintainers":[{"name":"simlu","email":"npm@blackflux.com"}],"_npmUser":{"name":"simlu","email":"npm@blackflux.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-treeify_1.1.24_1584136856700_0.24857954653515302"},"_hasShrinkwrap":false,"readme":"# object-treeify\n\n[![Build Status](https://circleci.com/gh/blackflux/object-treeify.png?style=shield)](https://circleci.com/gh/blackflux/object-treeify)\n[![NPM](https://img.shields.io/npm/v/object-treeify.svg)](https://www.npmjs.com/package/object-treeify)\n[![Downloads](https://img.shields.io/npm/dt/object-treeify.svg)](https://www.npmjs.com/package/object-treeify)\n\nStringify Object as tree structure\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\nProject was inspired by [treeify](https://github.com/notatestuser/treeify) and works almost identical. However\nthe algorithm is much shorter and faster, works without recursion and is very memory efficient. Furthermore\nthe output can be sorted using a custom comparator function.\n\n## Install\n\n    $ npm install --save object-treeify\n\n## Usage\n\n<!-- eslint-disable import/no-unresolved,import/no-extraneous-dependencies -->\n```js\nconst treeify = require('object-treeify');\n\ntreeify({\n  oranges: {\n    mandarin: {\n      clementine: null,\n      tangerine: 'so cheap and juicy!'\n    }\n  },\n  apples: {\n    gala: null,\n    'pink lady': null\n  }\n}, {/* options */});\n\n// =>\n// ├─ oranges\n// │  └─ mandarin\n// │     ├─ clementine\n// │     └─ tangerine: so cheap and juicy!\n// └─ apples\n//    ├─ gala\n//    └─ pink lady\n```\n\n### Features\n\n- Allows for custom sorting\n- Very fast and memory efficient implementation\n- Input traversed exactly once\n- Dependency free and small in size\n- Tests to verify correctness\n- Handles circular references\n\n## Options\n\n### joined\n\nType: `boolean`<br>\nDefault: `true`\n\nBy default a single string is returned. Can be set to `false` to instead return an array containing lines.\n\n#### spacerNoNeighbour\n\nType: `string`<br>\nDefault: `   `\n\nPrefix for depth level when no further neighbour is present.\n\n#### spacerNeighbour\n\nType: `string`<br>\nDefault: `│  `\n\nPrefix for depth level when a further neighbour is present.\n\n#### keyNoNeighbour\n\nType: `string`<br>\nDefault: `└─ `\n\nPrefix for key when no further neighbour is present.\n\n#### keyNeighbour\n\nType: `string`<br>\nDefault: `├─ `\n\nPrefix for key when a further neighbour is present.\n\n#### separator\n\nType: `string`<br>\nDefault: `: `\n\nUsed to separate node key from node value.\n\n#### renderFn\n\nType: `function`<br>\nDefault: `(node) => (['boolean', 'string', 'number'].includes(typeof node) ? node : undefined)`\n\nCan be used to overwrite the node rendering logic. Node is rendered if result is not equal `undefined`.\n\n#### sortFn\n\nType: `function`<br>\nDefault: `null`\n\nFunction that defines the key sort order. Defaults to ordering of `Object.keys(...)`, which is typically insertion order.\n\n#### breakCircularWith\n\nType: `string` or `null`<br>\nDefault: ` (circular ref.)`\n\nWhen `string`, circular references are broken with that string, at a minor performance cost.\n\n## Examples\n\nMore examples can be found in the tests.\n","publish_time":1584136856864,"_cnpm_publish_time":1584136856864,"dist-tags":{"latest":"5.0.1"}}