Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

🐦 Check for deprecated packages

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.

## Usage

```bash
Usage: ndc [options]

Options:
-V, --version output the version number
-h, --help display help for command

Commands:
current [options] check the packages of the current project
global [options] check global packages, default: npm
package [options] check for specified package
config [options] inspect and modify the config
help [command] display help for command
```

For `OpenAI` config:

```bash
Options:
--openaiKey recommend alternative packages via ChatGPT
--openaiModel ChatGPT model (choices: "gpt-3.5-turbo", "gpt-4")
--openaiBaseURL override the default base URL for the API
```

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).