system-shutdown
v1.0.3
Published
Package to shutdown computer on any platform
Downloads
9
Readme
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
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
- Clone the repo
git clone https://github.com/VisiSolutions/systemShutdown.js.git
- 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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Copyright (C) 2023 VisiMedia Ltd
Contact
Ben Lewis - [email protected]
Project Link: https://github.com/VisiSolutions/systemShutdown.js