Check NPM and GitHub status with sound.
Check NPM and GitHub status with sound. ♪♬♩♫ ⚑
npm install -g funny-status
Usage: funny-status [options]Options:-h, --help output usage information-V, --version output the version number-t, --time [n] Ping wait time-T, --timeout [n] Services timeout-x, --threshold [n] Number of consecutive success / failure required to play sound-s, --service [list] Custom services (ex: "github,npm")-S, --success-sound [file] Sound played when service up-F, --failure-sound [file] Sound played when service down
var FunnyStatus = require'funny-status'Daemon;var status = ;statusstart;
The options accepted are :
- Time between each ping.
- Number of consecutive success / failure required to play sound.
- Services to ping.
- Success sound played when a service wake up.
- Failure sound played when a service break.
- Custom callback to handle success.
- Custom callback to handle failure.
It's possible to use custom services. A service take a node style callback. If an error is returned, the service in considered down.
var FunnyStatus = require'funny-status'Daemon;var request = require'supertest';request''get'/'expect200 cbvar status =service: myWebsite;statusstart;