1.0.3 • Published 10 months ago

system-shutdown v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Contributors Forks Stargazers Issues MIT License LinkedIn

About The Project

Run program using sudo or admin permission on Windows

Provides simple cross-platform support to shutdown a computer from Node.js

Built With

  • Node

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/VisiSolutions/systemShutdown.js.git
  2. Install NPM packages
    npm install

Usage

let Shutdown = reuquire("shutdown_computer");
let s = new Shutdown();
async function shutdown() {
  try {
    await s.initShutdown();
  } catch (err) {
    console.error(err);
  }
}

// OR Scheduale the Shutdown
s.schedualeShutdown({ sec: 10, min: 0, hour: 0 });
// You may pass in any combination of the time unit

// For Example
s.schedualeShutdown({ sec: 10, min: 1 });
// OR
s.schedualeShutdown({ hour: 1 });

Roadmap

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Copyright (C) 2023 VisiMedia Ltd

Contact

Ben Lewis - ben.lewis@visimedia.co.uk

Project Link: https://github.com/VisiSolutions/systemShutdown.js

1.0.3

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago