package-lock-json-parser
Easily parse package-lock.json
dependencies.
It supports lock file versions 1, 2, and 3.
Example
// Getting a full package lock json file.
// You'll get information about the lock file version and a list of v1 or v2 dependencies.
// v1 lock files will only have v1 dependencies while v3 lock files will only have v2 dependencies.
// v2 lock files will get both v1 and v2 dependencies.
// Check this URL (https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json?v=true) if you want to learn more about package-lock.json fields.
use ;
use ;
// If you just a new a simple list of dependencies try the parse_dependencies function.
use ;
use ;
Documentation
Visit https://docs.rs/package-lock-json-parser/.
Build
You will need cargo, the Rust package manager.
Test