{"_id":"@3xpo/flora-colossus","_rev":"1-ff40ce1b16508e8244978d7d47f3eed5","name":"@3xpo/flora-colossus","dist-tags":{"latest":"2.1.1"},"versions":{"2.1.0":{"name":"@3xpo/flora-colossus","version":"2.1.0","description":"Walks your node_modules tree","author":{"name":"Samuel Attard"},"maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"license":"MIT","keywords":["node_modules","walker"],"main":"lib/index.cjs","module":"lib/index.mjs","source":"src/index.ts","typings":"lib/index.d.ts","types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Exponential-Workload/flora-colossus.git"},"exports":{".":{"default":"./lib/index.mjs","import":"./lib/index.mjs","node":"./lib/index.cjs","require":"./lib/index.cjs","types":"./lib/index.d.ts"}},"dependencies":{"debug":"^4.3.4","fs-extra":"^11.1.1"},"devDependencies":{"@types/chai":"^4.3.10","@types/debug":"^4.1.12","@types/fs-extra":"^11.0.4","@types/mocha":"^10.0.4","@types/node":"^20.9.1","chai":"^4.3.10","changelogen":"^0.5.5","concurrently":"^8.2.2","mocha":"^10.2.0","ts-node":"^10.9.1","typescript":"^5.2.2"},"engines":{"node":">=16"},"scripts":{"build":"concurrently -P \"npm:build:*\"","build:tsc":"tsc --emitDeclarationOnly","build:cjs":"npm run run_esbuild -- --format=cjs --outfile=lib/index.cjs","build:esm":"npm run run_esbuild -- --format=esm --outfile=lib/index.mjs","run_esbuild":"esbuild src/index.ts --bundle --sourcemap --platform=node","pretest":"npm run pretest:yarn","pretest:yarn":"cd test/fixtures/xml2js && yarn --frozen-lockfile","pretest:pnpm":"cd test/fixtures/xml2js && pnpx -y pnpm@~6.1 install --frozen-lockfile","test":"mocha --require ts-node/register test/*_spec.ts","release":"changelogen --release"},"bugs":{"url":"https://github.com/Exponential-Workload/flora-colossus/issues"},"homepage":"https://github.com/Exponential-Workload/flora-colossus#readme","_id":"@3xpo/flora-colossus@2.1.0","_integrity":"sha512-6dJfn61ins/7uOIwsJZGC5T/ZXBRq1vkdyGSLcfY65MjTRn7r7z/hrpksI3NYAmlMCobX7JQWpEcOUixJ5EvCQ==","_resolved":"/tmp/5e48147c8452c153225321e594b959bf/3xpo-flora-colossus-2.1.0.tgz","_from":"file:3xpo-flora-colossus-2.1.0.tgz","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-6dJfn61ins/7uOIwsJZGC5T/ZXBRq1vkdyGSLcfY65MjTRn7r7z/hrpksI3NYAmlMCobX7JQWpEcOUixJ5EvCQ==","shasum":"ca7e38189aff5081ac09f511f2f8557ad01acb23","tarball":"https://registry.npmjs.org/@3xpo/flora-colossus/-/flora-colossus-2.1.0.tgz","fileCount":10,"unpackedSize":599067,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWjJOrz457ug+Y09xhWsUTOqGZsbQORAkaeq57MbCoRAiEAlLIjtaUqlgTUc1q0cpy3EuHlRTV45bYTqhVmusw87r0="}]},"_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flora-colossus_2.1.0_1700221559668_0.8024538532415686"},"_hasShrinkwrap":false},"2.1.1":{"name":"@3xpo/flora-colossus","version":"2.1.1","description":"Walks your node_modules tree","author":{"name":"Samuel Attard"},"maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"license":"MIT","keywords":["node_modules","walker"],"main":"lib/index.cjs","module":"lib/index.mjs","source":"src/index.ts","typings":"lib/index.d.ts","types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Exponential-Workload/flora-colossus.git"},"exports":{".":{"default":"./lib/index.mjs","import":"./lib/index.mjs","node":"./lib/index.cjs","require":"./lib/index.cjs","types":"./lib/index.d.ts"}},"dependencies":{"debug":"^4.3.4","fs-extra":"^11.1.1"},"devDependencies":{"@types/chai":"^4.3.10","@types/debug":"^4.1.12","@types/fs-extra":"^11.0.4","@types/mocha":"^10.0.4","@types/node":"^20.9.1","chai":"^4.3.10","changelogen":"^0.5.5","concurrently":"^8.2.2","esbuild":"^0.19.5","mocha":"^10.2.0","ts-node":"^10.9.1","typescript":"^5.2.2"},"engines":{"node":">=16"},"scripts":{"build":"concurrently -P \"npm:build:*\"","build:tsc":"tsc --emitDeclarationOnly","build:cjs":"npm run run_esbuild -- --format=cjs --outfile=lib/index.cjs","build:esm":"npm run run_esbuild -- --format=esm --outfile=lib/index.mjs","run_esbuild":"esbuild src/index.ts --bundle --sourcemap --platform=node","pretest:yarn":"cd test/fixtures/xml2js && yarn --frozen-lockfile","pretest:pnpm":"cd test/fixtures/xml2js && pnpm dlx pnpm@~8.10 install --frozen-lockfile","test-pkg":"mocha --require ts-node/register test/*_spec.ts","test":"npm run test:yarn && npm run test:pnpm","test:pnpm":"npm run pretest:pnpm && npm run test-pkg","test:yarn":"npm run pretest:yarn && npm run test-pkg","release":"changelogen --release"},"bugs":{"url":"https://github.com/Exponential-Workload/flora-colossus/issues"},"homepage":"https://github.com/Exponential-Workload/flora-colossus#readme","_id":"@3xpo/flora-colossus@2.1.1","_integrity":"sha512-uk83s2AtIyW/p6+kYFZFc+iLU7QbFcr7BvsfZsfIaGHw5t4LFpINLNItswKumM0XfBGIThzLtzSCLbqbQYeF7g==","_resolved":"/tmp/f23d98fa7cfb57e18c9d87dad722a551/3xpo-flora-colossus-2.1.1.tgz","_from":"file:3xpo-flora-colossus-2.1.1.tgz","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-uk83s2AtIyW/p6+kYFZFc+iLU7QbFcr7BvsfZsfIaGHw5t4LFpINLNItswKumM0XfBGIThzLtzSCLbqbQYeF7g==","shasum":"50f16589e260d4f21f2c188c6aed41e80602dc88","tarball":"https://registry.npmjs.org/@3xpo/flora-colossus/-/flora-colossus-2.1.1.tgz","fileCount":10,"unpackedSize":597835,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/cuAKW0kDPBJ6R3EQU9AfJgXuDME2dqI4vtM6JF6/IgIgHdh5IZwA3aWls7EBd/rzQluJmFl65mDN2CeIQk6npJA="}]},"_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flora-colossus_2.1.1_1700222798689_0.8064716444108428"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-17T11:45:59.578Z","2.1.0":"2023-11-17T11:46:00.031Z","modified":"2023-11-17T12:06:39.161Z","2.1.1":"2023-11-17T12:06:38.942Z"},"maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"description":"Walks your node_modules tree","homepage":"https://github.com/Exponential-Workload/flora-colossus#readme","keywords":["node_modules","walker"],"repository":{"type":"git","url":"git+https://github.com/Exponential-Workload/flora-colossus.git"},"author":{"name":"Samuel Attard"},"bugs":{"url":"https://github.com/Exponential-Workload/flora-colossus/issues"},"license":"MIT","readme":"## Flora Colossus\n\n> Walk your node_modules tree\n\n## Installation\n\n```bash\npnpm i -D @3xpo/flora-colossus\n```\n\n## API\n\n### Enum: `DepType`\n\n```js\nimport { DepType } from 'flora-colossus';\n\n// DepType.PROD --> Production dependency\n// DepType.OPTIONAL --> Optional dependency\n// DepType.DEV --> Development dependency\n// DepType.DEV_OPTIONAL --> Optional dependency of a development dependency\n// DepType.ROOT --> The root module\n```\n\n####\n\n### Class: `Walker`\n\n```js\nimport { Walker } from 'flora-colossus';\n\n// modulePath is the root folder of your module\nconst walker = new Walker(modulePath);\n```\n\n#### `walker.walkTree()`\n\nReturns `Promise<Module[]>`\n\nWill walk your entire node_modules tree reporting back an array of \"modules\", each\nmodule has a \"path\", \"name\" and \"depType\". See the typescript definition file\nfor more information.\n\n## Testing with pnpm\n\nTo test with pnpm, switch the definition in `package.json#scripts#pretest` to `npm run pretest:pnpm`. instead of `npm run pretest:yarn`.\n\nYou may notice that we use a particular version of pnpm when testing, this is because\nit may complain about the lockfile not being in sync with the package.json and fail.\nThis seems to be a bug in pnpm because it won't use the different but compatible lockfile when\n`--frozen-lockfile` is specified.\n\nFor now, you can just force a particular pnpm version to run the tests like we did.\n\n```sh\npnpx pnpm@~6.1 install\npnpx pnpm@~6.1 run test\n```\n","readmeFilename":"README.md"}