npm-deprecated-check

1.0.1 • Public • Published

🐦 npm-deprecated-check

Check for deprecated packages

Preview

Install

$ 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

Usage: ndc <command> [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] <packageName>  check for specified package
  config [options]                 inspect and modify the config
  help [command]                   display help for command

For OpenAI config:

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

You can also save them to global configuration:

Usage: ndc config [options]

inspect and modify the config

Options:
  -g, --get <path>          get value from option
  -s, --set <path> <value>  set option value
  -d, --delete <path>       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.

Package Sidebar

Install

npm i npm-deprecated-check

Weekly Downloads

3,979

Version

1.0.1

License

MIT

Unpacked Size

19 kB

Total Files

5

Last publish

Collaborators

  • kid-joker