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

deps-install

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deps-install

Check if node_modules match package.json versions. npm / yarn install shortcut.

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

deps-install

Instantly check if node_modules match package.json versions. Returns list of pkgs that don't.

Inspired by check-dependencies, which itself has too many dependencies.

Usage

npm install deps-install

const {checkDeps, installDeps} = require('deps-install');

(async () => {
  // rootPath must have package.json and node_modules
  const deps = await checkDeps(rootPath);
  console.log(deps.length > 0 ? 'Doing npm install' : 'All clear!');
  if (deps.length) await installDeps(rootPath);
})();

License

MIT License (c) 2019, Paul Miller (https://paulmillr.com)

Keywords

FAQs

Package last updated on 23 Oct 2021

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