package-lock-fix
v0.1.3
Published
Add missing integrity and resolved fields to a package-lock.json file.
Maintainers
Readme
package-lock-fix
Add missing integrity and resolved fields to a package-lock.json file.
Usage
npx npm-lockfile-fix <path/to/package-lock.json> [options]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)
Examples
Fix lockfile in place
npx npm-lockfile-fix ./package-lock.jsonOutput to stdout
npx npm-lockfile-fix ./package-lock.json --coutSave to different file
npx npm-lockfile-fix ./package-lock.json -o ./fixed-package-lock.jsonDevelopment
Install dependencies
yarnRun tests
yarn testBuild
yarn buildCredits
Heavily inspired by a similar Python/Nix CLI tool: npm-lockfile-fix.
License
MIT
