UNPKG

array-to-tree

Version:

Convert a plain array of nodes (with pointers to parent nodes) to a tree

42 lines (41 loc) 1.1 kB
{ "name": "array-to-tree", "version": "3.3.2", "description": "Convert a plain array of nodes (with pointers to parent nodes) to a tree", "main": "index.js", "scripts": { "test": "mocha --reporter nyan", "tdd": "npm test -- --watch", "release": "npm version ${BUMP:-\"patch\"} --no-git-tag-version && git add package.json package-lock.json && git commit -m \":octocat: Bump to $(cat package.json | json version)\" && git tag $(cat package.json | json version)", "release:major": "BUMP=major npm run release", "release:minor": "BUMP=minor npm run release" }, "repository": "alferov/array-to-tree", "keywords": [ "array", "list", "pointer", "parent", "tree", "navigation", "nested" ], "devDependencies": { "chai": "^4.1.2", "eslint": "^5.4.0", "json": "^9.0.3", "mocha": "^5.2.0" }, "author": { "name": "Philipp Alferov", "email": "philipp.alferov@gmail.com" }, "engines": { "node": ">=4" }, "license": "MIT", "dependencies": { "lodash.keyby": "^4.6.0", "nested-property": "^0.0.7" } }