Skip to content

friederbluemle/package-lock-fix

 
 

Repository files navigation

package-lock-fix

Add missing integrity and resolved fields to a package-lock.json file.

ci

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.json

Output to stdout

npx npm-lockfile-fix ./package-lock.json --cout

Save to different file

npx npm-lockfile-fix ./package-lock.json -o ./fixed-package-lock.json

Development

Install dependencies

yarn

Run tests

yarn test

Build

yarn build

Credits

Heavily inspired by a similar Python/Nix CLI tool: npm-lockfile-fix.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 71.1%
  • JavaScript 28.9%