A simple Node.js script to schedule system shutdowns.
-
Clone the repository:
git clone https://github.com/siraom15/shutdownjs.git cd shutdownjs
-
Install dependencies:
npm install
-
Make the script executable:
chmod +x index.js
-
Link the script globally:
npm link
Now you can use the shutdownjs
command globally. Run the following command to display the shutdown menu:
shutdownjs
Navigate through the menu using arrow keys, and press Enter to select an option. If you choose the "Enter custom time manually" option, you will be prompted to input the custom time.
To terminate the script, you can use Ctrl+C or Ctrl+Z.
This project is licensed under the MIT License - see the LICENSE file for details.