|
1 | 1 | sleep-server
|
2 | 2 | ============
|
3 | 3 |
|
4 |
| -Send your server to sleep via HTTP |
| 4 | +It's easy to wake your computer with [Wake-On-Lan](http://en.wikipedia.org/wiki/Wake-on-LAN) |
| 5 | + |
| 6 | +Now you can send your computer back to sleep via HTTP |
| 7 | + |
| 8 | +### Install |
| 9 | + |
| 10 | +``` |
| 11 | +npm install -g sleep-server |
| 12 | +``` |
| 13 | + |
| 14 | +### Help |
| 15 | + |
| 16 | +``` |
| 17 | + Usage: sleep-server [options] |
| 18 | +
|
| 19 | + Options: |
| 20 | +
|
| 21 | + -h, --help output usage information |
| 22 | + -V, --version output the version number |
| 23 | + -p, --port <port> Port to run server on (default: 57339) |
| 24 | + -H, --host <host> Interface to run server on (default: 0.0.0.0) |
| 25 | + -u, --url <url> URL to trigger sleep (default: sleep) |
| 26 | + -d, --delay <ms> Delay in milliseconds (default: 1000) |
| 27 | +``` |
| 28 | + |
| 29 | +#### MIT License |
| 30 | + |
| 31 | +Copyright © 2014 Jaime Pillora <dev@jpillora.com> |
| 32 | + |
| 33 | +Permission is hereby granted, free of charge, to any person obtaining |
| 34 | +a copy of this software and associated documentation files (the |
| 35 | +'Software'), to deal in the Software without restriction, including |
| 36 | +without limitation the rights to use, copy, modify, merge, publish, |
| 37 | +distribute, sublicense, and/or sell copies of the Software, and to |
| 38 | +permit persons to whom the Software is furnished to do so, subject to |
| 39 | +the following conditions: |
| 40 | + |
| 41 | +The above copyright notice and this permission notice shall be |
| 42 | +included in all copies or substantial portions of the Software. |
| 43 | + |
| 44 | +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
| 45 | +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 46 | +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 47 | +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 48 | +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 49 | +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 50 | +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
0 commit comments