Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.
/ deps-install Public archive

Instantly check if node_modules match package.json versions

License

Notifications You must be signed in to change notification settings

brunch/deps-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Instantly check if node_modules match package.json versions

Resources

License

Stars

Watchers

Forks

Packages

No packages published