Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-deprecated-check

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-deprecated-check - npm Package Compare versions

Comparing version 0.1.7 to 1.0.0

44

package.json
{
"name": "npm-deprecated-check",
"type": "module",
"version": "0.1.7",
"version": "1.0.0",
"description": "Check for deprecated packages",

@@ -18,3 +18,5 @@ "author": "KID-joker <kid_joker@126.com>",

"dependencies",
"deprecated"
"deprecated",
"OpenAI",
"ai-recommend"
],

@@ -29,13 +31,23 @@ "main": "dist/cli.mjs",

],
"preferGlobal": true,
"scripts": {
"lint": "eslint .",
"build": "unbuild",
"dev": "esno ./src/cli.ts",
"build": "unbuild",
"typecheck": "tsc --noEmit",
"prepublishOnly": "nr build",
"release": "bumpp && pnpm publish --no-git-checks"
"lint": "eslint . --fix",
"release": "bumpp && pnpm publish --no-git-checks",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@pnpm/lockfile-file": "^6.0.2",
"@pnpm/logger": "^5.0.0",
"@yarnpkg/lockfile": "^1.1.0",
"chalk": "^5.1.2",
"commander": "^11.0.0",
"fs-extra": "^10.1.0",
"node-fetch": "^3.3.1",
"ora": "^6.1.2",
"semver": "^7.3.8"
},
"devDependencies": {
"@antfu/eslint-config": "^0.27.0",
"@antfu/ni": "^0.18.0",
"@antfu/utils": "^0.5.2",

@@ -45,4 +57,2 @@ "@types/fs-extra": "^9.0.13",

"@types/semver": "^7.3.13",
"@types/validate-npm-package-name": "^4.0.0",
"@types/yargs": "^17.0.13",
"@types/yarnpkg__lockfile": "^1.1.5",

@@ -54,17 +64,3 @@ "bumpp": "^8.2.1",

"unbuild": "^0.8.11"
},
"dependencies": {
"@pnpm/lockfile-file": "^6.0.2",
"@pnpm/logger": "^5.0.0",
"@yarnpkg/lockfile": "^1.1.0",
"chalk": "^5.1.2",
"dependency-path": "^9.2.8",
"execa": "^6.1.0",
"fs-extra": "^10.1.0",
"got": "^12.5.3",
"ora": "^6.1.2",
"semver": "^7.3.8",
"validate-npm-package-name": "^5.0.0",
"yargs": "^17.6.2"
}
}
<h1 align="center">🐦 npm-deprecated-check</h1>
<p align="center">Check for deprecated packages</p>
## Preview
<p align="center"><img src="./assets/preview.png" /></p>
## Install

@@ -14,3 +18,3 @@

- According to the version range of lockfile and package.json.
- Do a deep inspection of the dependency tree.
- Recommend alternative packages through OpenAI.

@@ -20,36 +24,43 @@ ## Usage

```bash
ndc [args]
Usage: ndc <command> [options]
command:
ndc current Check the packages of the current project
ndc global Check global packages
ndc package <packageName> Check for specified package
ndc version Show version
ndc * Check the packages of the current project
Options:
-V, --version output the version number
-h, --help display help for command
option:
-a, --all
-d, --deep
-h, --help
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 `current`, `global` and `package`, you can view all dependency checks deeply.
For `OpenAI` config:
```bash
option:
-a, --all show all packages info
-d, --deep Deep check the dependencies of packages
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
```
And `package`, a version range can be specified.
You can also save them to global configuration:
```bash
option:
-r, --range check the specify versions
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
```
See `ndc --help` for more details.
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) and [`taze`](https://github.com/antfu/taze)
`npm-deprecated-check` is inspired by [`check-is-deprecated`](https://github.com/awesome-cli/check-is-deprecated).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc