https://github.com/KID-joker/npm-deprecated-check
🐦 Check for deprecated packages
https://github.com/KID-joker/npm-deprecated-check
ai-recommend cli cli-tool dependencies deprecated openai
Last synced: 3 months ago
JSON representation
🐦 Check for deprecated packages
- Host: GitHub
- URL: https://github.com/KID-joker/npm-deprecated-check
- Owner: KID-joker
- License: mit
- Created: 2022-11-15T15:01:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-08T14:58:22.000Z (6 months ago)
- Last Synced: 2025-04-01T02:03:30.652Z (3 months ago)
- Topics: ai-recommend, cli, cli-tool, dependencies, deprecated, openai
- Language: TypeScript
- Homepage:
- Size: 485 KB
- Stars: 36
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🐦 npm-deprecated-check
Check for deprecated packages
## Preview
## Install
```bash
npm install -g npm-deprecated-check
```## Features
- Check the packages of current project, global or specified is deprecated.
- According to the version range of lockfile and package.json.
- Recommend alternative packages through OpenAI.
- Additionally checks if the running node version reached End Of Life.## Usage
```bash
Usage: ndc [options]Options:
-V, --version output the version number
-h, --help display help for commandCommands:
current [options] check the packages of the current project
global [options] check global packages, default: npm
package [options] check for specified package
node check if used node version is deprecated (reached End Of Life)
config [options] inspect and modify the config
help [command] display help for command
````OpenAI` config:
```bash
Options:
--openaiKey recommend alternative packages via ChatGPT
--openaiModel ChatGPT model (choices: "gpt-3.5-turbo", "gpt-4", "gpt-4-turbo", "gpt-4o-mini", "gpt-4o")
--openaiBaseURL override the default base URL for the API
```For `current`:
```bash
Options:
--registry specify registry URL, default: https://registry.npmjs.org/
--ignore ignore specific packages, example: request,tslint
--failfast exit the program if it has been deprecated
```For `global`:
```bash
Options:
-m, --manager check specified package manager (choices: "npm", "yarn", "pnpm")
--registry specify registry URL, default: https://registry.npmjs.org/
--ignore ignore specific packages, example: request,tslint
--failfast exit the program if it has been deprecated
```For `package`:
```bash
-r, --range check specified versions
--registry specify registry URL, default: https://registry.npmjs.org/
--failfast exit the program if it has been deprecated
```You can also save them to global configuration:
```bash
Usage: ndc config [options]inspect and modify the config
Options:
-g, --get get value from option
-s, --set set option value
-d, --delete delete option from config
-l, --list list all options
```The path should be `openaiKey`, `openaiModel`, `openaiBaseURL`.
## Credits
`npm-deprecated-check` is inspired by [`check-is-deprecated`](https://github.com/awesome-cli/check-is-deprecated).