A command-line interface (CLI) tool for managing system processes. Death provides both an interactive mode and command-line options for listing and killing processes.
This tool is intended for process management purposes only using a play on words. If you're experiencing thoughts of self-harm or harming others, please seek help immediately. You are not alone, and there are professionals ready to help:
- National Suicide Prevention Lifeline (US): 988 or 1-800-273-8255
- Crisis Text Line: Text HOME to 741741
Please consult with a licensed medical professional or mental health provider for proper care and treatment in a safe controlled environment. Your life has value, and help is available 24/7.
- 🔍 List all running processes with details (PID, CPU%, Memory%, Command)
- ⚡ Kill processes by PID
- 🖥️ Interactive mode with a user-friendly interface
- 📊 Formatted table output for better readability
- Clone the repository:
git clone https://github.com/bittricky/death-cli.git
cd death
- Install dependencies:
npm install
- Link the package locally (optional):
npm link
# Using npm scripts
npm run dev # Start in interactive mode
npm start # Alternative way to start
# If globally linked
death # Start in interactive mode
# Show help
death --help
# List all processes
death -l
death list
# Kill a process by PID
death -k <pid>
death kill <pid>
# Run in interactive mode
death -i
In interactive mode, you can:
- View all running processes in a formatted table
- Kill processes by entering their PID
- Refresh the process list
- Navigate using arrow keys and enter
Command/Flag | Description |
---|---|
list |
List all running processes |
-l, --list |
List all running processes |
-k, --kill <pid> |
Kill a process by PID |
-i, --interactive |
Run in interactive mode |
-h, --help |
Show help text |
-v, --version |
Show version |
death/
├── index.js # Entry point
├── utils/
│ ├── cli.js # CLI interface and command handling
│ └── processes.js # Process management functions
└── package.json
-
chalk
- Terminal string styling -
inquirer
- Interactive command line interface -
cli-table3
- Pretty unicode tables -
meow
- CLI app helper
MIT
Mitul Patel