New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

check-stale-node-modules

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

check-stale-node-modules

Generate a warning when your node_modules does not match your package.json

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
2
-81.82%
Maintainers
1
Weekly downloads
 
Created
Source

check-stale-node-modules

Generate a warning when your node_modules does not match your package.json

There a lot of times when you git pull and you forget to npm i This package will generate a warning if you need to npm i.

This tests for both missing dependencies, and dependencies that no longer satisfy the semver specified in package.json

npm install check-stale-node-modules

Usage

var check = require('check-stale-node-modules')
check(projectDir, function (errors) {
  if (errors.length) console.log('You have stale node_modules, npm install')
})

CLI

npm install check-stale-node-modules -g

and then in your project directory, run

> check-stale-node-modules
dependency semver does not satisfy ^50.0.3
run `npm install`

Tooling Suggestion

Add this to your dev watch tooling. Because you will usually restart that after a git pull

Eg

  scripts: {
     "watch": "check-stale-node-modules && watchify main.js -o static/bundle.js"
  }

License

MIT

FAQs

Package last updated on 13 Jan 2016

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