process-killer-cli 1.0.1 → 1.0.3
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 -17
- package/package.json +3 -3
- /package/bin/{index.js → process-killer.js} +0 -0
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,19 @@ 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
|
-
|
|
69
70
|
### Kill Java Application (Port 8080)
|
|
70
71
|
|
|
71
72
|
```bash
|
|
72
|
-
$
|
|
73
|
+
$ process-killer
|
|
73
74
|
...
|
|
74
75
|
Enter the port number you want to stop: 8080
|
|
75
76
|
✓ Port 8080 has been killed!
|
|
76
|
-
|
|
77
|
+
````
|
|
77
78
|
|
|
78
79
|
### Kill Python Flask (Port 5000)
|
|
79
80
|
|
|
80
81
|
```bash
|
|
81
|
-
$
|
|
82
|
+
$ process-killer
|
|
82
83
|
...
|
|
83
84
|
Enter the port number you want to stop: 5000
|
|
84
85
|
✓ Port 5000 has been killed!
|
|
@@ -122,7 +123,7 @@ Some ports enter TIME_WAIT state. Wait 30-60 seconds and try again.
|
|
|
122
123
|
The tool may need elevated privileges:
|
|
123
124
|
|
|
124
125
|
```bash
|
|
125
|
-
sudo
|
|
126
|
+
sudo process-killer
|
|
126
127
|
```
|
|
127
128
|
|
|
128
129
|
### Process Not Found
|
|
@@ -141,9 +142,9 @@ netstat -ano | findstr :3000
|
|
|
141
142
|
lsof -i :3000
|
|
142
143
|
```
|
|
143
144
|
|
|
144
|
-
###
|
|
145
|
+
### Command Not Found
|
|
145
146
|
|
|
146
|
-
Make sure you installed it globally:
|
|
147
|
+
Make sure you installed it globally with the `-g` flag:
|
|
147
148
|
|
|
148
149
|
```bash
|
|
149
150
|
npm install -g process-killer-cli
|
|
@@ -181,9 +182,9 @@ sudo fuser -k 3000/tcp
|
|
|
181
182
|
npm install -g process-killer-cli@latest
|
|
182
183
|
```
|
|
183
184
|
|
|
184
|
-
## 📝 What's New in v1.0.
|
|
185
|
+
## 📝 What's New in v1.0.2
|
|
185
186
|
|
|
186
|
-
- ✨
|
|
187
|
+
- ✨ Fixed installation documentation
|
|
187
188
|
- 🎨 Beautiful colorized UI with Unicode borders
|
|
188
189
|
- 🌍 Cross-platform support (Windows, macOS, Linux)
|
|
189
190
|
- 📋 Interactive OS selection menu
|
|
@@ -203,7 +204,7 @@ Contributions are welcome! Feel free to:
|
|
|
203
204
|
|
|
204
205
|
## 📄 License
|
|
205
206
|
|
|
206
|
-
MIT © Milon
|
|
207
|
+
MIT © Milon Mia
|
|
207
208
|
|
|
208
209
|
This project is open source and available under the MIT License.
|
|
209
210
|
|
|
@@ -241,6 +242,9 @@ A: The tool shows process details before killing, so you can verify.
|
|
|
241
242
|
**Q: Can I use this in scripts?**
|
|
242
243
|
A: This tool is interactive. For automation, use OS-specific commands directly.
|
|
243
244
|
|
|
245
|
+
**Q: Why do I need the -g flag?**
|
|
246
|
+
A: The `-g` flag installs the tool globally so you can use the `process-killer` command from any folder on your computer.
|
|
247
|
+
|
|
244
248
|
## 🎓 Learn More
|
|
245
249
|
|
|
246
250
|
- [Node.js Documentation](https://nodejs.org/en/docs/)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "process-killer-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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
|
-
"index.js": "./bin/
|
|
8
|
+
"index.js": "./bin/process-killer.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
File without changes
|