Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pmmmwh/staledeps
Find stale dependencies in the package.json file(s).
https://github.com/pmmmwh/staledeps
Last synced: 16 days ago
JSON representation
Find stale dependencies in the package.json file(s).
- Host: GitHub
- URL: https://github.com/pmmmwh/staledeps
- Owner: pmmmwh
- License: mit
- Created: 2022-01-11T08:24:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T07:21:57.000Z (23 days ago)
- Last Synced: 2024-10-21T10:25:23.297Z (23 days ago)
- Language: JavaScript
- Size: 4.32 MB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# staledeps
[license:badge]: https://img.shields.io/github/license/pmmmwh/staledeps
[npm:latest]: https://www.npmjs.com/package/staledeps/v/latest
[npm:latest:badge]: https://img.shields.io/npm/v/staledeps/latest[![License][license:badge]](./LICENSE)
[![Latest Version][npm:latest:badge]][npm:latest]Find stale dependencies in the package.json file(s).
## Installation
```
npm install -g staledeps
```Or simply using [npx](https://docs.npmjs.com/cli/v8/commands/npx), the package runner bundled with `npm`:
```
$ npx staledeps
```_Note:_ `staledeps` requires Node.js >= 18.
## Usage
```
Usage: staledeps [options]Options:
--version Show version number [boolean]
-h, --help Show help [boolean]
-d, --sort-dir Direction to sort data
[choices: "asc", "desc"] [default: "asc"]
-f, --full Show full report (including non-stale dependencies)
[boolean] [default: false]
-o, --output Format to output data
[choices: "json", "table"] [default: "table"]
-r, --registry URL of registry to check against
[default: "https://registry.npmjs.org"]
-s, --sort Field to sort data
[choices: "name", "lastPublish"] [default: "name"]
-t, --threshold Threshold to be determined as stale (see vercel/ms)
[default: "2y"]Examples:
staledeps ./package.json Find stale dependencies in the package.json file(s)
```