New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lint-package-lock

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lint-package-lock

Lint the package-lock file generated by npm

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Lint Package Lock

License npm version

This is a tool to keep your package-lock sane when working with multiple devs who may be using different npm versions or .npmrc files.

Installation

npm i --save-dev lint-package-lock

Usage

It is configured using the JSON file .lint-package-lock in your home folder, details of which are in the Rules section of the readme.

Add it to your packages scripts to use it:

{
  "scripts": {
    "lint:package-lock": "lint-package-lock"
  }
}

Rules

Server

Enforces the resolves server to use, defaults to https://registry.npmjs.org

Example:

{
  "server": "https://your-private-registry.internal"
}

Arguments

--file=package-lock.json

Sets the file to lint, defaults to package-lock.json in the current working directory.

--config=.lint-package-lock

Sets the config file, defaults to .lint-package-lock in the current working directory.

FAQs

Package last updated on 02 Jul 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc