
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
CLI for linting npm ecosystem lockfiles for security and consistency issues.
A standalone CLI wrapper around eslint-plugin-lockfile that works without any ESLint configuration.
npm install -g lintlock
Or use with npx:
npx lintlock
lintlock [options] [lockfile-path]
If no lockfile path is provided, searches the current directory for lockfiles.
| Option | Alias | Description |
|---|---|---|
--flavor <pm> | -f | Allowed package manager(s): npm, yarn, pnpm, bun, vlt. Can be specified multiple times. Defaults to auto-detect. |
--registry <url> | -r | Allowed registry URL(s). Can be specified multiple times. Defaults to npm config. |
--algorithms <alg> | -a | Allowed integrity hash algorithm(s): sha1, sha256, sha384, sha512. Can be specified multiple times. Defaults to all. |
--help | Show help message |
Lint lockfile in current directory:
lintlock
Lint a specific lockfile:
lintlock package-lock.json
lintlock /path/to/project/yarn.lock
Allow only npm lockfiles:
lintlock -f npm
Allow npm or yarn:
lintlock -f npm -f yarn
Require packages from the official npm registry:
lintlock -r https://registry.npmjs.org/
Allow multiple registries:
lintlock -r https://registry.npmjs.org/ -r https://npm.pkg.github.com/
Require SHA-512 integrity hashes:
lintlock -a sha512
Allow SHA-512 or SHA-384:
lintlock -a sha512 -a sha384
lintlock -f npm -r https://registry.npmjs.org/ -a sha512 package-lock.json
| Code | Description |
|---|---|
0 | No errors found (warnings are OK) |
1 | Errors found or execution failed |
| Package Manager | Lockfile(s) |
|---|---|
| npm | package-lock.json, npm-shrinkwrap.json |
| yarn | yarn.lock |
| pnpm | pnpm-lock.yaml |
| bun | bun.lock, bun.lockb |
| vlt | vlt-lock.json |
The CLI runs the following checks from eslint-plugin-lockfile:
import { lintLockfile } from 'lintlock';
const exitCode = await lintLockfile('/path/to/package-lock.json', {
flavor: ['npm'],
registry: ['https://registry.npmjs.org/'],
algorithms: ['sha512'],
});
process.exit(exitCode);
eslint-plugin-lockfile - ESLint plugin with configurable ruleslockfile-tools - Utilities for parsing lockfilesClone the repo, npm install, and run npm test.
MIT
FAQs
CLI for eslint-plugin-lockfile
The npm package lintlock receives a total of 6 weekly downloads. As such, lintlock popularity was classified as not popular.
We found that lintlock demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.