{"name":"snyk-nodejs-lockfile-parser","description":"Generate a dep tree given a lockfile","main":"dist/index.js","bin":{"parse-nodejs-lockfile":"bin/index.js"},"scripts":{"test":"npm run unit-test && npm run test:jest","unit-test":"tap --ts -Rspec ./test/lib/*.test.[tj]s --timeout=300 --no-check-coverage","test:jest":"jest --coverage --runInBand","lint":"eslint --color --cache '{lib,test}/**/*.{js,ts}' && prettier --check '{lib,test}/**/*.{js,ts}'","format":"prettier --write '{lib,test}/**/*.{js,ts,json}'","build":"tsc","build-watch":"tsc -w","prepare":"npm run build"},"types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/snyk/nodejs-lockfile-parser.git"},"author":{"name":"snyk.io"},"license":"Apache-2.0","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=24.0.0","npm":">=10"},"bugs":{"url":"https://github.com/snyk/nodejs-lockfile-parser/issues"},"homepage":"https://github.com/snyk/nodejs-lockfile-parser#readme","dependencies":{"@snyk/dep-graph":"^2.12.0","@snyk/error-catalog-nodejs-public":"^5.82.1","@snyk/graphlib":"2.1.9-patch.3","@yarnpkg/lockfile":"^1.1.0","debug":"^4.4.3","dependency-path":"^9.2.8","event-loop-spinner":"^2.0.0","js-yaml":"^5.2.2","lodash.clonedeep":"^4.5.0","lodash.flatmap":"^4.5.0","lodash.isempty":"^4.4.0","lodash.topairs":"^4.3.0","micromatch":"^4.0.8","p-map":"^4.0.0","semver":"^7.6.0","snyk-config":"^5.2.0","tslib":"^1.9.3","uuid":"^11.1.1"},"devDependencies":{"@types/jest":"^28.1.3","@types/lodash":"^4.17.20","@types/node":"^24","@types/semver":"^7.3.6","@typescript-eslint/eslint-plugin":"^8.60.0","@typescript-eslint/parser":"^8.60.0","eslint":"^8.57.1","eslint-config-prettier":"^9.1.0","jest":"^28.1.3","prettier":"^2.7.1","tap":"^15.0.4","ts-jest":"^28.0.8","ts-node":"^8.10.2","typescript":"^5.4.5"},"packageManager":"yarn@2.4.1","version":"2.10.4","gitHead":"593b534d98b84a38602248d47b48ba1288ce5702","_id":"snyk-nodejs-lockfile-parser@2.10.4","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-rVwroHPZcnH1xPYUwwkw89epxToW3bm2Qwo6EtcSjGQ17MD9mnLAoGvN1PcKbJSLDwNeMGcG26SdvFsOEbfIFA==","shasum":"db856f62cd3aa81fef5877f08380924e03ff88bf","tarball":"http://registry-npm.ywwl.com/snyk-nodejs-lockfile-parser/download/snyk-nodejs-lockfile-parser-2.10.4.tgz","fileCount":175,"unpackedSize":384364,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFKHpJxWsmBwBpYGMlgetKuook6oy4T10Fi4ShTao1jOAiA4L3omPPRgSeKYoOC8rc5E46/cH19AnUj5e0STAdCOXg=="}],"size":81189,"noattachment":false,"key":"/snyk-nodejs-lockfile-parser/-/snyk-nodejs-lockfile-parser-2.10.4.tgz"},"_npmUser":{"name":"CircleCI","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"circleci","oidcConfigId":"oidc:91fcc6bc-262a-414b-a972-39f44fd1b626"}},"directories":{},"maintainers":[{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/snyk-nodejs-lockfile-parser_2.10.4_1785856484188_0.12841281689624795"},"_hasShrinkwrap":false,"readme":"![Snyk logo](https://snyk.io/style/asset/logo/snyk-print.svg)\n\n---\n\n[![Known Vulnerabilities](https://snyk.io/test/github/snyk/nodejs-lockfile-parser/badge.svg)](https://snyk.io/test/github/snyk/nodejs-lockfile-parser)\n\nSnyk helps you find, fix and monitor for known vulnerabilities in your dependencies, both on an ad hoc basis and as part of your CI (Build) system.\n\n## Snyk Node.js Lockfile Parser\n\nThis is a small utility package that parses lock file and returns either a [dependency tree](https://github.com/snyk/nodejs-lockfile-parser/blob/1a495302089614205478d57611bf7c39d29ce66d/lib/parsers/index.ts#L51) or a [dependency graph](https://github.com/snyk/dep-graph). Dependency graphs are the more modern data type and we plan to migrate fully over.\n\nDep graph generation supported for:\n\n- `package-lock.json` (at Versions 2 and 3)\n- `yarn.lock`\n- `pnpm-lock.yaml` (lockfileVersion 5.x, 6.x and 9.x)\n\nLegacy dep tree supported for:\n\n- `package-lock.json`\n- yarn 1 `yarn.lock`\n- yarn 2 `yarn.lock`\n","publish_time":1785856484375,"_cnpm_publish_time":1785856484375,"dist-tags":{"latest":"2.10.8"}}