deprisk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +64 -0
- package/dist/index.js +25814 -0
- package/package.json +34 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# deprisk
|
|
2
|
+
|
|
3
|
+
Dependency Risk Advisor for Node.js projects.
|
|
4
|
+
|
|
5
|
+
Identify maintenance risks, declining trends, and deprecated packages in your project. Deprisk suggests modern alternatives to help minimize technical debt and ensure long-term stability.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **Risk Assessment**: Analyze dependencies for maintenance activity, usage trends, and deprecation status.
|
|
10
|
+
- **Health Scoring**: Get an overall health score for your project's dependency tree.
|
|
11
|
+
- **Trend Detection**: identify packages losing community momentum before they are abandoned.
|
|
12
|
+
- **Mitigation Suggestions**: Curated suggestions for modern replacements of high-risk legacy packages.
|
|
13
|
+
- **CI/CD Integration**: JSON output for automated build pipeline checks.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
Install globally via npm:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install -g deprisk
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or run directly with npx:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx deprisk scan .
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
### Scan for Dependency Risk
|
|
32
|
+
|
|
33
|
+
Analyze the current project to see health scores and risk levels.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
deprisk scan .
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
To output results in JSON format for automation:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
deprisk scan . --json
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Get Migration Suggestions
|
|
46
|
+
|
|
47
|
+
Get recommended modern alternatives for declining or deprecated packages.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
deprisk suggest .
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## How It Works
|
|
54
|
+
|
|
55
|
+
Deprisk evaluates risk factors by pulling real-time data from the npm registry and download statistics:
|
|
56
|
+
|
|
57
|
+
1. **Maintenance**: Time since last update and release frequency.
|
|
58
|
+
2. **Deprecation**: Official deprecation status on the npm registry.
|
|
59
|
+
3. **Popularity**: Weekly download volume and long-term trends.
|
|
60
|
+
4. **Community Health**: Heuristics to detect if a package is gaining or losing users.
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
MIT [LICENSE](./LICENSE)
|