{"_id":"nmtree","_rev":"7-60e6e90b7828cc9f40b3fe6308253578","name":"nmtree","description":"Get a (flat) tree representation of the modules in your node_modules folder","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"nmtree","version":"1.0.0","description":"Get a (flat) tree representation of the modules in your node_modules folder","main":"index.js","bin":{"nmtree":"./bin/nmtree.js"},"scripts":{"test":"standard && tape test/*.spec.js | tap-spec","coverage":"nyc --reporter=lcov npm test","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"keywords":["node_modules","tree","parse","json","object"],"author":{"name":"Aram Drevekenin","email":"grimsniffer@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/imsnif/nmtree.git"},"devDependencies":{"coveralls":"^3.0.0","nyc":"^11.3.0","standard":"^10.0.3","tap-spec":"^4.1.1","tape":"^4.8.0"},"dependencies":{"commander":"^2.11.0"},"gitHead":"975309c7ec72ba888f196578fef6d0b1daee4afe","bugs":{"url":"https://github.com/imsnif/nmtree/issues"},"homepage":"https://github.com/imsnif/nmtree#readme","_id":"nmtree@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"imsnif","email":"grimsniffer@gmail.com"},"dist":{"integrity":"sha512-6yWEMSafB3deTH8riGwK2BZAYWBmqzpZxqWqMeS8D3cYvMKGnm+osYKpjlNbHxS61zYHQZl3G4mK8ASYCpNhFw==","shasum":"b1acad2b02852ad8fc26c71d5598560db64bf3ed","tarball":"https://registry.npmjs.org/nmtree/-/nmtree-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2sEWwMQZtKdtSCEqAnhzWeXPXaV0bekCc5uDo2oYD+wIgW7xZx678tvzjlIfFxLV5uk7YGDh7MjLP0YGq0b7Kn+Q="}]},"maintainers":[{"name":"imsnif","email":"grimsniffer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmtree-1.0.0.tgz_1510946768163_0.7769780051894486"},"directories":{}},"1.0.1":{"name":"nmtree","version":"1.0.1","description":"Get a (flat) tree representation of the modules in your node_modules folder","main":"index.js","bin":{"nmtree":"./bin/nmtree.js"},"scripts":{"test":"standard && tape test/*.spec.js | tap-spec","coverage":"nyc --reporter=lcov npm test","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"keywords":["node_modules","tree","parse","json","object"],"author":{"name":"Aram Drevekenin","email":"grimsniffer@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/imsnif/nmtree.git"},"devDependencies":{"coveralls":"^3.0.0","nyc":"^11.3.0","standard":"^10.0.3","tap-spec":"^4.1.1","tape":"^4.8.0"},"dependencies":{"commander":"^2.11.0"},"gitHead":"1f9da08178342d196facfc98903dbe9c67f70df5","bugs":{"url":"https://github.com/imsnif/nmtree/issues"},"homepage":"https://github.com/imsnif/nmtree#readme","_id":"nmtree@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"imsnif","email":"grimsniffer@gmail.com"},"dist":{"integrity":"sha512-dBpZoeDeqcgBbcvFA1nK63VtZN2ng/QzRpHdEZ6icvyBT4pYODkp3931qFbs1K7VcqBZRYNmI1RhwYGweI5uhA==","shasum":"71e614d88c5ea419cdb1b72e403f83a746b48e39","tarball":"https://registry.npmjs.org/nmtree/-/nmtree-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEr4iqysBNBjcIWjLNOds8fYn9IAAjWUqDHmmTZXu99TAiEA3AfeUAOLNdiqykzAtX53SC3vHGQAgwMPLKZ8yKT2OlQ="}]},"maintainers":[{"name":"imsnif","email":"grimsniffer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmtree-1.0.1.tgz_1510947075735_0.800532704917714"},"directories":{}},"1.0.2":{"name":"nmtree","version":"1.0.2","description":"Get a (flat) tree representation of the modules in your node_modules folder","main":"index.js","bin":{"nmtree":"./bin/nmtree.js"},"scripts":{"test":"standard && tape test/*.spec.js | tap-spec","coverage":"nyc --reporter=lcov npm test","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"keywords":["node_modules","tree","parse","json","object"],"author":{"name":"Aram Drevekenin","email":"grimsniffer@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/imsnif/nmtree.git"},"devDependencies":{"coveralls":"^3.0.0","nyc":"^11.3.0","standard":"^10.0.3","tap-spec":"^4.1.1","tape":"^4.8.0"},"dependencies":{"commander":"^2.11.0"},"gitHead":"36e040a84c39dd33184be7551482585e9d1d5aa8","bugs":{"url":"https://github.com/imsnif/nmtree/issues"},"homepage":"https://github.com/imsnif/nmtree#readme","_id":"nmtree@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"imsnif","email":"grimsniffer@gmail.com"},"dist":{"integrity":"sha512-87K/B96/XTy9X6c6kzFKLsoDno6KUHDp9ublzAULVBBjKpCr+qgf1iCoqFjsuk/DdxJQa4fCMEf80iVQLTz19Q==","shasum":"d12d3bae90334d14da92ee603e0f8e91b51151da","tarball":"https://registry.npmjs.org/nmtree/-/nmtree-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICdfoUCmW5MMuYUo1uiOJWD8hixt0iDnfbpwcQHaqo75AiEA3XPhP4wMv9rwmRmiBqK5kw425YzvDmCsguwDE+K8F2g="}]},"maintainers":[{"name":"imsnif","email":"grimsniffer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmtree-1.0.2.tgz_1510947210085_0.8743180059827864"},"directories":{}},"1.0.3":{"name":"nmtree","version":"1.0.3","description":"Get a (flat) tree representation of the modules in your node_modules folder","main":"index.js","bin":{"nmtree":"./bin/nmtree.js"},"scripts":{"test":"standard && tape test/*.spec.js | tap-spec","coverage":"nyc --reporter=lcov npm test","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"keywords":["node_modules","tree","parse","json","object"],"author":{"name":"Aram Drevekenin","email":"grimsniffer@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/imsnif/nmtree.git"},"devDependencies":{"coveralls":"^3.0.0","nyc":"^11.3.0","standard":"^10.0.3","tap-spec":"^4.1.1","tape":"^4.8.0"},"dependencies":{"commander":"^2.11.0"},"gitHead":"1d2affb8ce36477b9f08194715a682f69434736f","bugs":{"url":"https://github.com/imsnif/nmtree/issues"},"homepage":"https://github.com/imsnif/nmtree#readme","_id":"nmtree@1.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"imsnif","email":"grimsniffer@gmail.com"},"dist":{"integrity":"sha512-EuPtixczbvQs5aZkRRTLoP1CnAnW8tiSwVEq30m0sTyqtLHSGzd8uOGmjJhpURbm/z5zU1GNMyC4my554etqmw==","shasum":"75b605a99727f136e82c19df49c319e212bda555","tarball":"https://registry.npmjs.org/nmtree/-/nmtree-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEEjDz2W9RN1HiMaUHLI+WH+4IzDnn+oeRRT/wPMFiswIhALjyiqPwLpi6Am5g2qjogoL9+qdtkakhzFeEtG3EI+OH"}]},"maintainers":[{"name":"imsnif","email":"grimsniffer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmtree-1.0.3.tgz_1510947548724_0.5684014197904617"},"directories":{}},"1.0.4":{"name":"nmtree","version":"1.0.4","description":"Get a (flat) tree representation of the modules in your node_modules folder","main":"index.js","bin":{"nmtree":"./bin/nmtree.js"},"scripts":{"test":"standard && tape test/*.spec.js | tap-spec","coverage":"nyc --reporter=lcov npm test","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"keywords":["node_modules","tree","parse","json","object"],"author":{"name":"Aram Drevekenin","email":"grimsniffer@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/imsnif/nmtree.git"},"devDependencies":{"coveralls":"^3.0.0","nyc":"^11.3.0","standard":"^10.0.3","tap-spec":"^4.1.1","tape":"^4.8.0"},"dependencies":{"commander":"^2.11.0"},"gitHead":"254096f69678b864e06c1ea3b75087236ff687d1","bugs":{"url":"https://github.com/imsnif/nmtree/issues"},"homepage":"https://github.com/imsnif/nmtree#readme","_id":"nmtree@1.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"imsnif","email":"grimsniffer@gmail.com"},"dist":{"integrity":"sha512-kaYPfVNcc2RWh2EtT2MCBkkitgZbWM2OCfbq4Ji5jJPUrsm2L6xCTOWBIu/Rm1/v6sqvZFhBJtJcRp29IFcqDQ==","shasum":"695254f9979004406ff8579913dd5fb18f4dda27","tarball":"https://registry.npmjs.org/nmtree/-/nmtree-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPMYXr7hywnOwsTHlVc767OzkWMCSeoe3PVKFx3qHKagIhANNuAD284DuJDKMbRTeqzfb3oUgS0GX9qSft6fVec+kj"}]},"maintainers":[{"name":"imsnif","email":"grimsniffer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmtree-1.0.4.tgz_1511304724576_0.817822846584022"},"directories":{}},"1.0.5":{"name":"nmtree","version":"1.0.5","description":"Get a (flat) tree representation of the modules in your node_modules folder","main":"index.js","bin":{"nmtree":"./bin/nmtree.js"},"scripts":{"test":"standard && tape test/*.spec.js | tap-spec","coverage":"nyc --reporter=lcov npm test","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"keywords":["node_modules","tree","parse","json","object"],"author":{"name":"Aram Drevekenin","email":"grimsniffer@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/imsnif/nmtree.git"},"devDependencies":{"coveralls":"^3.0.0","nyc":"^11.3.0","standard":"^10.0.3","tap-spec":"^4.1.1","tape":"^4.8.0"},"dependencies":{"commander":"^2.11.0"},"gitHead":"422273473faaf333a7442dde1252d80c9d25f9f8","bugs":{"url":"https://github.com/imsnif/nmtree/issues"},"homepage":"https://github.com/imsnif/nmtree#readme","_id":"nmtree@1.0.5","_npmVersion":"6.0.1","_nodeVersion":"10.0.0","_npmUser":{"name":"imsnif","email":"grimsniffer@gmail.com"},"dist":{"integrity":"sha512-pjmOoTS7mrfwcysstW9z8uhS8jt2io2hSCyTFBZrEhzzWe6dVv+s0m2h2Q6GC4hRZBFTQgRcuh/btS/aMRQ/lQ==","shasum":"8bed79dbf64de85fc00cce7bacd9d74a32fc0113","tarball":"https://registry.npmjs.org/nmtree/-/nmtree-1.0.5.tgz","fileCount":9,"unpackedSize":532278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/huDCRA9TVsSAnZWagAAvM4QAJA4xrTKvKyAlWPEvL5u\nBGhyycRognLKcbYhNYs4156EHVVUD8EDkhTrPHlJSN3fCJQFFzOq9z9T1Ik/\nKXjkmCP7sYrPWgvTmPBJ/BIzipbNth73oFaJ8dOaz1BMq3be6kw+uMykQFFM\nZDO358iv9p97vr0+0LX0f8IAUUOTdVxp2909ulw9b3AfPRjFQ81zqvO1jzjb\nwpN2jPgcCwl8FlGf6wDZOoV07BWydffVG32RIcu2bS948Ni4G9ipArabP2np\nQRtdvJYdWJ/j9zrKPKKWeyLFdXFXVYwIwTOVkB0I/X3F3RZQyEXHRzrlsffd\nk0ZM3quJamSsQo1ydQcGZ44mLHZc1KOJB8nYBxajNeaiow68LgBsI/8d7+j4\nq63MlvVNZs0YzoSLdMvZFMndXEAPBMZEO/IJ3CP1HfC6aTBRmOzvf79VLMl4\nXYAAdd5EHdeTtjD3OG59ygjqlIykwib4wV2BReVPVm0enEm6uarBY/CjPkrY\nfQyNHNAKA/Xxr+zfu5c0Ar5ZcVWIxoUXeuBXs9B5JUgD8gRcURR1FsOZ7R0R\n6cw1Zs2CtkZC7KRvD53YMKfFTRi6DAVMgYqOL8dgoY3ITybBDA4EqM1eD/d5\nK6zP20LiKOaj3DrD1M/hJmKDm/vktWWw8CQqWcB2at+NzzfAkSMQ/KbRZceV\n7QLI\r\n=Sy7u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLashTD1k3AY2wYoeyZOQ44G1bkUaRAyCIfyw5644JAwIhAPN4mEhci88Rk1rFCRQ2iZT2R8m5lQN1iFKRVEzqqUHD"}]},"maintainers":[{"name":"imsnif","email":"grimsniffer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmtree_1.0.5_1560157054791_0.6959808641952794"},"_hasShrinkwrap":false},"1.0.6":{"name":"nmtree","version":"1.0.6","description":"Get a (flat) tree representation of the modules in your node_modules folder","main":"index.js","bin":{"nmtree":"./bin/nmtree.js"},"scripts":{"test":"standard && tape test/*.spec.js | tap-spec","coverage":"nyc --reporter=lcov npm test","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"keywords":["node_modules","tree","parse","json","object"],"author":{"name":"Aram Drevekenin","email":"grimsniffer@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/imsnif/nmtree.git"},"devDependencies":{"coveralls":"^3.0.0","nyc":"^11.3.0","standard":"^10.0.3","tap-spec":"^4.1.1","tape":"^4.8.0"},"dependencies":{"commander":"^2.11.0"},"gitHead":"a184f141cdf44f338fbef7cbd50e7763f08b2461","bugs":{"url":"https://github.com/imsnif/nmtree/issues"},"homepage":"https://github.com/imsnif/nmtree#readme","_id":"nmtree@1.0.6","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-SUPCoyX5w/lOT6wD/PZEymR+J899984tYEOYjuDqQlIOeX5NSb1MEsCcT0az+dhZD0MLAj5hGBZEpKQxuDdniA==","shasum":"953e057ad545e9e627f1275bd25fea4e92c1cf63","tarball":"https://registry.npmjs.org/nmtree/-/nmtree-1.0.6.tgz","fileCount":8,"unpackedSize":449685,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBxNxCRA9TVsSAnZWagAA19IQAIWKgr1TuHaXM4SN9Rsn\nJ2IQBJvZuMPrScTD2lIzpl6ESSVvQtoQJbDGjxITsLgH0c4qxGmOCdxGqOW0\nQrabs4YSK7NHoX/szomb8IpIuHRhipL+TN5G/iRdJfJJer6dRkEiXRlHSxDI\n/T9Z3Ay5j1T6+z4dnvMnTYdLqvimO9IvRbYL2d1vWkMC6kkjzHsR/MW1u0Ae\nEfgH6JOwVZZUynl12mjmRZ4cEZWjAIcM6JcFOl/spq4b5n3VVaRcQnBYF/S7\n15oHTRwvPlHppXC7jIwO4WwuB6vVp4W9+mN7LjRRtAY8ECzcEKckvELSQnfB\nAotPEAW+2NXkJAnFX4USM8dZUeTMV+EVlBiW2B/+K2/gwSbmeRPu1RWRLxH/\nCjiwEvwJfdtIVgv4SShsurglcoq3g/Q/gKEhund3DfIz9h4Cq/skSB53wxI8\nLhp7PrKlcIZ4WZfAUG/559idwJZ0zG7+MSQG2/f8cGUxMlPKeDWwErppfQX2\nIGkr/U6sDGk+8fgKXCFzXyr6hmhJuKWJjWSQOCPp5MybqH02UkWxPLsXF1Df\npxP3tbBHLhrFI78WG/MzWAhG8BPn4dE1cAGTYh4h45tMIXmaEIi71SQlvu34\nsamI3brmr81atJewCs1Eq4yiF5ew5mM68lIQXUPnpRz+ZGXPCc9pOmBXWaVK\nW4cp\r\n=yGNc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHi3wZpLI0d2PyaDg0386V0c1A8AVnVgSYp/Y15M/BoNAiEAz46UzdrOFu+6Cchp1RDH3v2/jP2Ic7slsHjPMM9GuFY="}]},"maintainers":[{"name":"imsnif","email":"grimsniffer@gmail.com"}],"_npmUser":{"name":"imsnif","email":"grimsniffer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmtree_1.0.6_1594299249450_0.2491832544856889"},"_hasShrinkwrap":false}},"readme":"# nmtree\n\n[![Build Status](https://travis-ci.org/imsnif/nmtree.svg?branch=master)](https://travis-ci.org/imsnif/nmtree) [![Coverage Status](https://coveralls.io/repos/github/imsnif/nmtree/badge.svg?branch=master)](https://coveralls.io/github/imsnif/nmtree?branch=master) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nGet a node_modules directory with all its `package.json` files as a parsable flat tree.\n\n![alt text](https://github.com/imsnif/nmtree/raw/master/docs/tty.gif )\n\n### what is this?\nGiven an npm library, this tool would recursively go through its `node_modules` and create a flat tree with the paths of libraries as keys and their parsed `package.json` files as values.\neg.\n```javascript\n{\n  \"myLib\": <myPackageJson>,\n  \"myLib/node_modules/myDep\": <depPackageJson>,\n  \"myLib/node_modules/myDep/node_modules/myOtherDep\": <otherDepPackageJson>\n}\n```\n### install\n`npm install -g nmtree` - for the cli tool\n\n`npm install nmtree` for the `require`-able library\n\n### usage\n```javascript\nconst nmtree = require('nmtree')\n\nconst libPath = '/path/to/my/lib'\nconst tree = nmtree(libPath)\n\nconst installedReactVersions = Object.keys(tree).reduce((versions, libPath) => {\n  const { name, version } = tree[libPath]\n  if (name === 'react') versions.push(version)\n  return versions\n}, [])\n// or whatever else you can think of!\n```\n\n### command line usage\n```\nnmtree /path/to/my/lib > my-lib-node-modules.json\n```\n\n### License\nMIT\n\n","maintainers":[{"name":"imsnif","email":"grimsniffer@gmail.com"}],"time":{"modified":"2022-05-10T22:47:20.020Z","created":"2017-11-17T19:26:09.849Z","1.0.0":"2017-11-17T19:26:09.849Z","1.0.1":"2017-11-17T19:31:17.148Z","1.0.2":"2017-11-17T19:33:31.848Z","1.0.3":"2017-11-17T19:39:08.897Z","1.0.4":"2017-11-21T22:52:06.196Z","1.0.5":"2019-06-10T08:57:34.928Z","1.0.6":"2020-07-09T12:54:09.643Z"},"homepage":"https://github.com/imsnif/nmtree#readme","keywords":["node_modules","tree","parse","json","object"],"repository":{"type":"git","url":"git+https://github.com/imsnif/nmtree.git"},"author":{"name":"Aram Drevekenin","email":"grimsniffer@gmail.com"},"bugs":{"url":"https://github.com/imsnif/nmtree/issues"},"license":"MIT","readmeFilename":"README.md"}