Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sxzz/stale-dep
Check if your `node_modules` is stale.
https://github.com/sxzz/stale-dep
Last synced: 2 days ago
JSON representation
Check if your `node_modules` is stale.
- Host: GitHub
- URL: https://github.com/sxzz/stale-dep
- Owner: sxzz
- License: mit
- Created: 2023-01-11T07:57:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T18:21:02.000Z (9 months ago)
- Last Synced: 2024-04-14T05:11:37.324Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 353 KB
- Stars: 147
- Watchers: 1
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# stale-dep [![npm](https://img.shields.io/npm/v/stale-dep.svg)](https://npmjs.com/package/stale-dep)
[![Unit Test](https://github.com/sxzz/stale-dep/actions/workflows/unit-test.yml/badge.svg)](https://github.com/sxzz/stale-dep/actions/workflows/unit-test.yml)
Check if your `node_modules` is stale.
### Running on-demand
Using `npx` you can run the script without installing it first:
```bash
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:
```bash
npm install -D stale-dep
```2. Add `stale-dep` to your package.json.
```jsonc
{
"scripts": {
"build": "stale-dep && some build command",
"dev": "stale-dep && some dev command",
// ...
"postinstall": "stale-dep -u",
},
}
```## Sponsors
## License
[MIT](./LICENSE) License © 2022 [三咲智子](https://github.com/sxzz)