process-killer-cli 1.0.1 → 1.0.2
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/README.md +21 -16
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# Process Killer CLI ⚡
|
|
2
2
|
|
|
3
3
|
> A fast, cross-platform utility to safely kill processes using specific ports on Windows, macOS, and Linux.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
7
8
|
|
|
8
9
|
## 🎯 Features
|
|
9
10
|
|
|
@@ -21,10 +22,12 @@
|
|
|
21
22
|
npm install -g process-killer-cli
|
|
22
23
|
```
|
|
23
24
|
|
|
25
|
+
The `-g` flag installs globally, making the command available everywhere.
|
|
26
|
+
|
|
24
27
|
## 🚀 Quick Start
|
|
25
28
|
|
|
26
29
|
```bash
|
|
27
|
-
|
|
30
|
+
process-killer
|
|
28
31
|
```
|
|
29
32
|
|
|
30
33
|
Then follow the prompts:
|
|
@@ -38,8 +41,8 @@ Then follow the prompts:
|
|
|
38
41
|
|
|
39
42
|
### Kill Node.js Server
|
|
40
43
|
|
|
41
|
-
|
|
42
|
-
$
|
|
44
|
+
````bash
|
|
45
|
+
$ process-killer
|
|
43
46
|
|
|
44
47
|
Select your Operating System:
|
|
45
48
|
1) Windows
|
|
@@ -64,21 +67,20 @@ Do you want to kill this process? (y/n): y
|
|
|
64
67
|
|
|
65
68
|
You can now start your backend server on this port.
|
|
66
69
|
|
|
67
|
-
```
|
|
68
70
|
|
|
69
71
|
### Kill Java Application (Port 8080)
|
|
70
72
|
|
|
71
73
|
```bash
|
|
72
|
-
$
|
|
74
|
+
$ process-killer
|
|
73
75
|
...
|
|
74
76
|
Enter the port number you want to stop: 8080
|
|
75
77
|
✓ Port 8080 has been killed!
|
|
76
|
-
|
|
78
|
+
````
|
|
77
79
|
|
|
78
80
|
### Kill Python Flask (Port 5000)
|
|
79
81
|
|
|
80
82
|
```bash
|
|
81
|
-
$
|
|
83
|
+
$ process-killer
|
|
82
84
|
...
|
|
83
85
|
Enter the port number you want to stop: 5000
|
|
84
86
|
✓ Port 5000 has been killed!
|
|
@@ -122,7 +124,7 @@ Some ports enter TIME_WAIT state. Wait 30-60 seconds and try again.
|
|
|
122
124
|
The tool may need elevated privileges:
|
|
123
125
|
|
|
124
126
|
```bash
|
|
125
|
-
sudo
|
|
127
|
+
sudo process-killer
|
|
126
128
|
```
|
|
127
129
|
|
|
128
130
|
### Process Not Found
|
|
@@ -141,9 +143,9 @@ netstat -ano | findstr :3000
|
|
|
141
143
|
lsof -i :3000
|
|
142
144
|
```
|
|
143
145
|
|
|
144
|
-
###
|
|
146
|
+
### Command Not Found
|
|
145
147
|
|
|
146
|
-
Make sure you installed it globally:
|
|
148
|
+
Make sure you installed it globally with the `-g` flag:
|
|
147
149
|
|
|
148
150
|
```bash
|
|
149
151
|
npm install -g process-killer-cli
|
|
@@ -181,9 +183,9 @@ sudo fuser -k 3000/tcp
|
|
|
181
183
|
npm install -g process-killer-cli@latest
|
|
182
184
|
```
|
|
183
185
|
|
|
184
|
-
## 📝 What's New in v1.0.
|
|
186
|
+
## 📝 What's New in v1.0.2
|
|
185
187
|
|
|
186
|
-
- ✨
|
|
188
|
+
- ✨ Fixed installation documentation
|
|
187
189
|
- 🎨 Beautiful colorized UI with Unicode borders
|
|
188
190
|
- 🌍 Cross-platform support (Windows, macOS, Linux)
|
|
189
191
|
- 📋 Interactive OS selection menu
|
|
@@ -203,7 +205,7 @@ Contributions are welcome! Feel free to:
|
|
|
203
205
|
|
|
204
206
|
## 📄 License
|
|
205
207
|
|
|
206
|
-
MIT © Milon
|
|
208
|
+
MIT © Milon Mia
|
|
207
209
|
|
|
208
210
|
This project is open source and available under the MIT License.
|
|
209
211
|
|
|
@@ -241,6 +243,9 @@ A: The tool shows process details before killing, so you can verify.
|
|
|
241
243
|
**Q: Can I use this in scripts?**
|
|
242
244
|
A: This tool is interactive. For automation, use OS-specific commands directly.
|
|
243
245
|
|
|
246
|
+
**Q: Why do I need the -g flag?**
|
|
247
|
+
A: The `-g` flag installs the tool globally so you can use the `process-killer` command from any folder on your computer.
|
|
248
|
+
|
|
244
249
|
## 🎓 Learn More
|
|
245
250
|
|
|
246
251
|
- [Node.js Documentation](https://nodejs.org/en/docs/)
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "process-killer-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A utility to safely find and kill processes using specific ports on Linux/macOS. Perfect for backend developers dealing with port conflicts.",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
8
|
"index.js": "./bin/index.js"
|