{"name":"object-treeify","version":"1.1.17","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":"npm run clean && npm run build","test-simple":"nyc mocha \"./test/**/*.spec.js\"","test":"npm run clean && npm run gardener && npm run test-simple","coveralls":"node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info","semantic-release":"npm 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.5.5","@babel/core":"7.5.5","@babel/plugin-proposal-object-rest-spread":"7.5.5","@babel/register":"7.5.5","@blackflux/eslint-plugin-rules":"1.3.1","@blackflux/robo-config-plugin":"2.5.4","babel-eslint":"10.0.2","chai":"4.2.0","coveralls":"3.0.6","eslint":"6.2.0","eslint-config-airbnb-base":"14.0.0","eslint-plugin-import":"2.18.2","eslint-plugin-jasmine":"2.10.1","eslint-plugin-json":"1.4.0","eslint-plugin-markdown":"1.0.0","eslint-plugin-mocha":"6.0.0","js-gardener":"2.0.68","nyc":"14.1.1","semantic-release":"15.13.21"},"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":">= 8.10"},"dependencies":{},"gitHead":"04c7eff59bc511ed23aed33dbac7fb9b57463e16","_id":"object-treeify@1.1.17","_nodeVersion":"12.8.1","_npmVersion":"6.10.3","dist":{"integrity":"sha512-YrqfQedpasUEM07YHLKIOuwETAJy01cnYUkbAP1Hk8Df/GQiWaOgLIIuQqslNbtj3X7vVOOVmv+ophrl1FAByQ==","shasum":"20f64ab9769330b40f519366e3d1678cf453a9a8","tarball":"http://registry-npm.ywwl.com/object-treeify/download/object-treeify-1.1.17.tgz","fileCount":4,"unpackedSize":16664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdWilUCRA9TVsSAnZWagAA8PsP/RfWYSGKuTVPMQPqUqy1\nAJRkMcKVP89Yd08RrAcxDTGyZkDz84xHv0CVCz0cAs9ZJqqcutNWanzygSs+\nIGbTIeSQ8FZT/xAkNdrqkZjNn2KFkyYS0XDm/AhtIbU6OgUFaKELatXbrfVR\nc/vEXeE+ZS4ORedGDzkeyzlkaISYqG22Mxehy6ZEkPhyUV9gO8MPfoN94Ysh\n8vxKR6OlwqqByfhw8kjkMu6HVu+rF1yE5PSmtGb2lIR2A/NUA/sRg9l9c5Tu\ny9GNeX51MTPzkxcxtLSFfIGQpSp40gTakm4IrZCxR0mpHJ65CnycgWm1pQBL\nhhBN/VEjWjJfT+Nqyc8ulj9xIs8GnBU/MssnoBFVWWGJTgi3XixoLXPn0hQo\n/pka7m+p8h0DPMtC31GiiZwhj/5kaEzjUuGYk91uKq65RdkMbtDrPamOhwTm\nAFYPVepIQ8Fdt8+OyIHzb3H9f1ewO5NvD9HwGBozDL5MJuLyTbqMsJXVEXq5\nOsG1Z1UmJ6CO06VPLk1AuOQH1VlL3xyyWNLm01Z1/7c5CXofMnHZXfqn+oaI\nLDKCjzUrJN4mpjYELn6We7ia8AjbnPaXisHCNvKMZ0exaVizZD33fKTKVSxf\nekqYvM0Br2BaNAEx6YzWtk15LTFNAekF9RcgXOOBISuyqkgkP3asLfGlde49\nbpu6\r\n=Jhi6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZQqiM4BQyMV1i6eqCOpcebH6jmqbmuFC2zpweZaBH8QIhAKorj6pIvI8n60Ek4CElM0pxaDdo4sjMZU3WeUVWAqIB"}],"size":6788,"noattachment":false,"key":"/object-treeify/-/object-treeify-1.1.17.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.17_1566189908033_0.01629895478061605"},"_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":1566189908140,"_cnpm_publish_time":1566189908140,"dist-tags":{"latest":"5.0.1"}}