Read and write npm.lock lockfile.
The lockfile records resolved versions, integrity hashes, and dependency relationships to ensure reproducible installs.
Summary
Functions
Get a single package entry from the lockfile.
Check if a specific package is in the lockfile.
List all package names in the lockfile.
Parse a raw packages map into lockfile entries.
Read the lockfile. Returns empty map if it doesn't exist.
Get the lockfile version from a file.
Write the lockfile.
Types
Functions
Get a single package entry from the lockfile.
Check if a specific package is in the lockfile.
List all package names in the lockfile.
Parse a raw packages map into lockfile entries.
Read the lockfile. Returns empty map if it doesn't exist.
Get the lockfile version from a file.
Write the lockfile.