Add missing integrity and resolved fields to a package-lock.json file.
npx npm-lockfile-fix <path/to/package-lock.json> [options]-r,--only-without-resolved- Only patch dependencies without a resolved field-o,--output <file>- Leave input file unmodified and output to specified file--cout- Leave input file unmodified and output to stdout--indent <number>- Number of spaces to indent output with (default: 2)
npx npm-lockfile-fix ./package-lock.jsonnpx npm-lockfile-fix ./package-lock.json --coutnpx npm-lockfile-fix ./package-lock.json -o ./fixed-package-lock.jsonyarnyarn testyarn buildHeavily inspired by a similar Python/Nix CLI tool: npm-lockfile-fix.
MIT