1.0.3 • Published 2 years ago

package-lock-version v1.0.3

Weekly downloads
-
License
GPL-V3
Repository
github
Last release
2 years ago

package-lock-version

npm version

Simple package to help enforce a lock file version on your CI pipeline.

When multiple devs work on a project, they may have different versions of node or npm which means the package-lock version can change between devs. This enforces a version, ensuring devs on the wrong version of npm for your project have to change to the correct version.

Usage

Via npx:

npx package-lock-version --lock=2

Or install locally:

npm i --save-dev package-lock-version

package-lock-version --lock=2

The --lock argument is required, it defines which package-lock version to restrict to. It will check the package-lock in the current working directory.