Skip to main content

Module lockfile

Module lockfile 

Source
Expand description

Lockfile and manifest parsers. Each parser is a pure function from file contents to exact versions, so they are easy to test.

Constants§

LOCKFILES
Lockfiles lockdocs reads, in priority order within an ecosystem.

Functions§

bun_lock
cargo_lock
go_mod
is_requirements
npm_lock
package_json_direct
Direct dependency names declared in package.json.
parse
Parse one lockfile by file name. Returns None for unknown names.
pipfile_lock
pnpm_lock
poetry_lock
pyproject_direct
Direct dependency names from pyproject.toml (PEP 621, Poetry, PDM, uv groups).
requirements
Pinned lines (name==1.2.3) from a requirements file.
uv_lock
yarn_lock