Simple local-only API to shut down a Windows PC (use only on trusted networks)
npm install @metalbotics/killmehttp://localhost:5000/kill/60 in seconds.http://localhost:5000/kill/1min in minutes.
ipconfig to see the IP of the machine you want to shutdown and do it via another device by doing the request.
bash
npm install @metalbotics/killme
`
Programmatic usage:
`ts
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:
`bash
npm install
npm run build
npm start
`
Development (fast reload):
`bash
npm install
npm run dev
``