Socket
Socket
Sign inDemoInstall

lock-verify

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lock-verify

Report if your package.json is out of sync with your package-lock.json.


Version published
Weekly downloads
151K
increased by0.34%
Maintainers
1
Weekly downloads
 
Created

What is lock-verify?

The lock-verify npm package is used to verify the integrity of package-lock.json files. It ensures that the dependencies listed in the package-lock.json file are consistent with the actual installed node_modules directory. This helps in maintaining the integrity and consistency of the project dependencies.

What are lock-verify's main functionalities?

Verify package-lock.json

This feature verifies the integrity of the package-lock.json file against the node_modules directory. If the verification is successful, it logs a success message; otherwise, it logs the errors.

const lockVerify = require('lock-verify');

lockVerify().then(result => {
  if (result.status === 'success') {
    console.log('package-lock.json is valid');
  } else {
    console.error('package-lock.json is invalid');
    console.error(result.errors);
  }
}).catch(err => {
  console.error('An error occurred:', err);
});

Other packages similar to lock-verify

FAQs

Package last updated on 10 Aug 2017

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