# snyk-nodejs-lockfile-parser

> Generate a dep tree given a lockfile

Latest version **2.10.8** (published 2026-11-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install snyk-nodejs-lockfile-parser
pnpm add snyk-nodejs-lockfile-parser
yarn add snyk-nodejs-lockfile-parser
bun add snyk-nodejs-lockfile-parser
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.10.8 |
| Published | 2026-11-17 |
| First published | 2018-08-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 80 |
| Author | snyk.io |
| Maintainers | snyk-admin |

## Links

- npm: https://www.npmjs.com/package/snyk-nodejs-lockfile-parser
- Repository: https://github.com/snyk/nodejs-lockfile-parser
- Homepage: https://github.com/snyk/nodejs-lockfile-parser#readme
- Issues: https://github.com/snyk/nodejs-lockfile-parser/issues
- npm.io page: https://npm.io/package/snyk-nodejs-lockfile-parser

## Recent versions

- 2.10.8 (latest) — 2026-11-17
- 2.10.7 — 2026-11-11
- 2.10.6 — 2026-11-05
- 2.10.5 — 2026-10-19
- 2.10.4 — 2026-08-04
- 2.10.3 — 2026-07-29
- 2.10.2 — 2026-07-29
- 2.10.1 — 2026-07-24
- 2.10.0 — 2026-07-09
- 2.9.1 — 2026-07-01
- 2.9.0 — 2026-06-25
- 2.8.1 — 2026-06-16
- 2.8.0 — 2026-06-04
- 2.7.1 — 2026-05-01
- 2.7.0 — 2026-04-02
- … 164 more at https://npm.io/package/snyk-nodejs-lockfile-parser/versions

## README

![Snyk logo](https://snyk.io/style/asset/logo/snyk-print.svg)

---

[![Known Vulnerabilities](https://snyk.io/test/github/snyk/nodejs-lockfile-parser/badge.svg)](https://snyk.io/test/github/snyk/nodejs-lockfile-parser)

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](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.

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`

---
_Source: https://npm.io/package/snyk-nodejs-lockfile-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
