/shutdownjs

a Node.js script for scheduling system shutdowns with a interactive UI

Primary LanguageJavaScript

shutdownjs

A simple Node.js script to schedule system shutdowns.

Demo

Installation

  1. Clone the repository:

    git clone https://github.com/siraom15/shutdownjs.git
    cd shutdownjs
  2. Install dependencies:

    npm install
  3. Make the script executable:

    chmod +x index.js
  4. Link the script globally:

    npm link

Usage

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.