Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
system-shutdown
Advanced tools
Run program using
sudo
or admin permission on Windows
Provides simple cross-platform support to shutdown a computer from Node.js
To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
npm install npm@latest -g
git clone https://github.com/VisiSolutions/systemShutdown.js.git
npm install
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 });
See the open issues for a full list of proposed features (and known issues).
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!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Copyright (C) 2023 VisiMedia Ltd
Ben Lewis - ben.lewis@visimedia.co.uk
Project Link: https://github.com/VisiSolutions/systemShutdown.js
FAQs
Package to shutdown computer on any platform
The npm package system-shutdown receives a total of 0 weekly downloads. As such, system-shutdown popularity was classified as not popular.
We found that system-shutdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.