process-killer-cli 1.0.6 → 1.0.8
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 +2 -29
- package/bin/process-killer.js +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> A fast, cross-platform utility to safely kill processes using specific ports on Windows, macOS, and Linux.
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|

|
|
7
7
|

|
|
8
8
|
|
|
@@ -89,24 +89,19 @@ Enter the port number you want to stop: 5000
|
|
|
89
89
|
|
|
90
90
|
## 🖥️ Supported Operating Systems
|
|
91
91
|
|
|
92
|
-
|
|
93
92
|
| OS | Status | Notes |
|
|
94
93
|
| ----------- | ------------------ | -------------------------------------- |
|
|
95
94
|
| **Windows** | ✅ Fully Supported | Uses `netstat`, `tasklist`, `taskkill` |
|
|
96
95
|
| **macOS** | ✅ Fully Supported | Uses `lsof`, `ps`, `fuser` |
|
|
97
96
|
| **Linux** | ✅ Fully Supported | Uses `lsof`, `ps`, `fuser` |
|
|
98
97
|
|
|
99
|
-
|
|
100
98
|
## 📋 Requirements
|
|
101
99
|
|
|
102
|
-
|
|
103
100
|
- **Node.js** >= 12.0.0
|
|
104
101
|
- **npm** or **yarn**
|
|
105
102
|
|
|
106
|
-
|
|
107
103
|
## 🔧 How It Works
|
|
108
104
|
|
|
109
|
-
|
|
110
105
|
### Windows
|
|
111
106
|
|
|
112
107
|
- Uses `netstat -ano` to find process by port
|
|
@@ -119,10 +114,8 @@ Enter the port number you want to stop: 5000
|
|
|
119
114
|
- Uses `ps` to get process name
|
|
120
115
|
- Uses `fuser -k PORT/tcp` to terminate process
|
|
121
116
|
|
|
122
|
-
|
|
123
117
|
## ⚠️ Troubleshooting
|
|
124
118
|
|
|
125
|
-
|
|
126
119
|
### Port Still Shows as In Use
|
|
127
120
|
|
|
128
121
|
Some ports enter TIME_WAIT state. Wait 30-60 seconds and try again.
|
|
@@ -159,18 +152,14 @@ Make sure you installed it globally with the `-g` flag:
|
|
|
159
152
|
npm install -g process-killer-cli
|
|
160
153
|
```
|
|
161
154
|
|
|
162
|
-
|
|
163
155
|
## 🗑️ Uninstall
|
|
164
156
|
|
|
165
|
-
|
|
166
157
|
```bash
|
|
167
158
|
npm uninstall -g process-killer-cli
|
|
168
159
|
```
|
|
169
160
|
|
|
170
|
-
|
|
171
161
|
## 📚 Advanced Usage
|
|
172
162
|
|
|
173
|
-
|
|
174
163
|
### Manual Port Killing (Without Tool)
|
|
175
164
|
|
|
176
165
|
**Windows:**
|
|
@@ -189,17 +178,13 @@ sudo kill -9 12345
|
|
|
189
178
|
sudo fuser -k 3000/tcp
|
|
190
179
|
```
|
|
191
180
|
|
|
192
|
-
|
|
193
181
|
## 🔄 Update to Latest Version
|
|
194
182
|
|
|
195
|
-
|
|
196
183
|
```bash
|
|
197
184
|
npm install -g process-killer-cli@latest
|
|
198
185
|
```
|
|
199
186
|
|
|
200
|
-
|
|
201
|
-
## 📝 What's New in v1.0.6
|
|
202
|
-
|
|
187
|
+
## 📝 What's New in v1.0.8
|
|
203
188
|
|
|
204
189
|
- ✨ Fixed installation documentation
|
|
205
190
|
- 🎨 Beautiful colorized UI with Unicode borders
|
|
@@ -209,10 +194,8 @@ npm install -g process-killer-cli@latest
|
|
|
209
194
|
- 📊 Developer information display
|
|
210
195
|
- ⚡ Zero external dependencies
|
|
211
196
|
|
|
212
|
-
|
|
213
197
|
## 🤝 Contributing
|
|
214
198
|
|
|
215
|
-
|
|
216
199
|
Contributions are welcome! Feel free to:
|
|
217
200
|
|
|
218
201
|
- Report bugs
|
|
@@ -227,20 +210,16 @@ MIT © Milon Mia
|
|
|
227
210
|
|
|
228
211
|
This project is open source and available under the MIT License.
|
|
229
212
|
|
|
230
|
-
|
|
231
213
|
## 👨💻 Author
|
|
232
214
|
|
|
233
|
-
|
|
234
215
|
**Milon Mia**
|
|
235
216
|
|
|
236
217
|
- GitHub: [@devmilon923](https://github.com/devmilon923)
|
|
237
218
|
- npm: [process-killer-cli](https://www.npmjs.com/package/process-killer-cli)
|
|
238
219
|
- Email: dev.milon923@gmail.com
|
|
239
220
|
|
|
240
|
-
|
|
241
221
|
## 🙏 Support
|
|
242
222
|
|
|
243
|
-
|
|
244
223
|
If you found this tool helpful, please:
|
|
245
224
|
|
|
246
225
|
- ⭐ Star on GitHub
|
|
@@ -248,10 +227,8 @@ If you found this tool helpful, please:
|
|
|
248
227
|
- 🐛 Report issues
|
|
249
228
|
- 💡 Suggest improvements
|
|
250
229
|
|
|
251
|
-
|
|
252
230
|
## FAQ
|
|
253
231
|
|
|
254
|
-
|
|
255
232
|
**Q: Is it safe to use?**
|
|
256
233
|
A: Yes! The tool always asks for confirmation before killing any process.
|
|
257
234
|
|
|
@@ -270,18 +247,14 @@ A: This tool is interactive. For automation, use OS-specific commands directly.
|
|
|
270
247
|
**Q: Why do I need the -g flag?**
|
|
271
248
|
A: The `-g` flag installs the tool globally so you can use the `process-killer` command from any folder on your computer.
|
|
272
249
|
|
|
273
|
-
|
|
274
250
|
## 🎓 Learn More
|
|
275
251
|
|
|
276
|
-
|
|
277
252
|
- [Node.js Documentation](https://nodejs.org/en/docs/)
|
|
278
253
|
- [npm Documentation](https://docs.npmjs.com/)
|
|
279
254
|
- [Port Management Guide](https://www.howtouselinux.com/linux/lsof-command)
|
|
280
255
|
|
|
281
|
-
|
|
282
256
|
## 📞 Feedback
|
|
283
257
|
|
|
284
|
-
|
|
285
258
|
Have questions or suggestions? Open an issue on GitHub:
|
|
286
259
|
[GitHub Issues](https://github.com/devmilon923/process-killer-cli/issues)
|
|
287
260
|
|
package/bin/process-killer.js
CHANGED
|
@@ -67,7 +67,10 @@ function header() {
|
|
|
67
67
|
c("╔═══════════════════════════════════════════════════════╗", colors.cyan),
|
|
68
68
|
);
|
|
69
69
|
console.log(
|
|
70
|
-
c(
|
|
70
|
+
c(
|
|
71
|
+
" PROCESS KILLER UTILITY v1.0.8",
|
|
72
|
+
colors.bold + colors.cyan,
|
|
73
|
+
),
|
|
71
74
|
);
|
|
72
75
|
// console.log(c(" Tool By Milon", colors.yellow));
|
|
73
76
|
console.log(
|
|
@@ -151,11 +154,11 @@ function showDevInfo() {
|
|
|
151
154
|
);
|
|
152
155
|
console.log(
|
|
153
156
|
c("║", colors.cyan) +
|
|
154
|
-
c(" Tool
|
|
157
|
+
c(" Tool Process Killer CLI", colors.yellow).padEnd(54),
|
|
155
158
|
);
|
|
156
159
|
console.log(
|
|
157
160
|
c("║", colors.cyan) +
|
|
158
|
-
c(" Version 1.0.
|
|
161
|
+
c(" Version 1.0.8", colors.yellow).padEnd(54),
|
|
159
162
|
);
|
|
160
163
|
console.log(
|
|
161
164
|
c("║", colors.cyan) + c(" License MIT", colors.yellow).padEnd(54),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "process-killer-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|