package-lock-version

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i package-lock-version

Weekly Downloads

0

Version

1.0.3

License

GPL-V3

Unpacked Size

2.33 kB

Total Files

4

Last publish

Collaborators

  • sam.boylett