Skip to content

sxzz/stale-dep

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
bin
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

stale-dep npm

Unit Test

Check if your node_modules is stale.

Running on-demand

Using npx you can run the script without installing it first:

npx stale-dep

Usage

stale-dep -u: store the current dependencies status.

stale-dep: check if dependencies status is changed comparing to previous stored.

Add stale-dep to the project

  1. Install stale-dep as a dev dependency:
npm install -D stale-dep
  1. Add stale-dep to your package.json.
{
  "scripts": {
    "build": "stale-dep && some build command",
    "dev": "stale-dep && some dev command",
    // ...
    "postinstall": "stale-dep -u"
  }
}

Sponsors

License

MIT License © 2022 三咲智子