StayAwake is a simple Node.js utility that simulates a Shift key press at regular intervals.
It can be useful in scenarios where you want to prevent your system from going idle during long-running tasks like:
- Local builds or scripts
- Long downloads or backups
- Monitoring dashboards
- Hardware testing setups
- β Simple CLI interface
- β¨οΈ Simulates Shift key press every X seconds or minutes
- β±οΈ Accepts flexible input like
30s,2m, or defaults to60s
npm installnode index.jsYouβll be prompted to enter how often the Shift key should be pressed.
Example inputs:
- 30 β 30 seconds
- 45s β 45 seconds
- 2m β 2 minutes
If no input is provided, it defaults to 60 seconds.
The Shift key is used because itβs a safe and non-destructive key β it doesn't alter system state or interfere with ongoing work.
- Node.js v12+
- Basic system permissions to simulate keyboard input
MIT
Made with simplicity in mind by MEZ901