🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

stop-server

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stop-server

Stop your computer using your phone or your tablet, from your bed or your couch

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
85
26.87%
Maintainers
1
Weekly downloads
 
Created
Source

stop-server

Shutdown :zap: your computer using your phone or your tablet, from your bed or your couch ;)

Requires Node. Works on OS X, Linux and Windows.

Why?

For fun and because I usually watch movies on my computer.

Install

npm install -g stop-server && stop-server start

Additionally, on OS X and Linux you need to allow the poweroff command to be used without admin password:

# Run 'sudo visudo'
# Add
your-username ALL=NOPASSWD: /sbin/poweroff

Usage

Visit http://localhost:5709/qr.html on your computer and scan the QR code or go directly to http://your-local-ip:5709 from your phone/tablet.

Now if you press the stop button, your computer will be shutdown.

Uninstall

npm rm -g stop-server

How it works?

stop-server is a simple Express server. When you call DELETE http://192.168.x.y:5709, it runs poweroff (OS X, Linux) or shutdown (Windows).

stop-server is also automatically started on log in using user-startup.

Actually, you just need npm and a browser to enjoy it.

License

MIT - typicode

Keywords

stop

FAQs

Package last updated on 25 Aug 2015

Did you know?

Socket

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.

Install

Related posts