Skip to content

Generate a Snyk dependency tree from package-lock.json or yarn.lock file

License

Notifications You must be signed in to change notification settings

snyk/nodejs-lockfile-parser

Folders and files

NameName
Last commit message
Last commit date
Nov 13, 2024
May 15, 2024
Aug 9, 2018
Jan 29, 2025
Jan 29, 2025
Oct 31, 2022
Apr 11, 2024
Apr 21, 2020
Nov 12, 2024
Jun 15, 2023
Apr 22, 2020
May 17, 2024
Feb 6, 2019
Aug 3, 2018
May 10, 2024
Sep 25, 2023
Apr 22, 2020
May 7, 2021
Nov 13, 2024
May 27, 2020
Jun 30, 2020

Repository files navigation

Snyk logo


Known Vulnerabilities

Snyk 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.

Snyk Node.js Lockfile Parser

This is a small utility package that parses lock file and returns either a dependency tree or a dependency graph. Dependency graphs are the more modern data type and we plan to migrate fully over.

Dep graph generation supported for:

  • package-lock.json (at Versions 2 and 3)
  • yarn.lock
  • pnpm-lock.yaml (lockfileVersion 5.x, 6.x and 9.x)

Legacy dep tree supported for:

  • package-lock.json
  • yarn 1 yarn.lock
  • yarn 2 yarn.lock