@metalbotics/killme
v1.1.0
Published
Simple local-only API to shut down a Windows PC (use only on trusted networks)
Downloads
2
Readme
KillMe
Express.js API to kill target PCs.
Usage:
http://localhost:5000/kill/60in seconds.http://localhost:5000/kill/1minin minutes.Since the server is running on 0.0.0.0, the server can be accessible for any computer in the network, you can use
ipconfigto see the IP of the machine you want to shutdown and do it via another device by doing the request.
npm package
Install:
npm install @metalbotics/killmeProgrammatic usage:
import { KillMeConfig } from '@metalbotics/killme';
import KillMe from '@metalbotics/killme';
const config: KillMeConfig = {
port:5000,
host:"0.0.0.0"
}
const killMe = new KillMe(config)
killMe.startServer()
// later
killMe.stopServer();CLI / Run locally:
npm install
npm run build
npm startDevelopment (fast reload):
npm install
npm run devSecurity warning: This package runs OS shutdown commands. Do NOT publish or use this on untrusted networks. Use only for local, internal, or testing purposes.
