0.1.0 • Published 9 years ago
is-my-world-spinning v0.1.0
is-my-world-spinning
A Basic Terminal Utility App to check if my favorite services and other things are up and running
installation:
You need npm (bundled with node.js):
$ npm install is-my-world-spinning --globalusage:
$ is-my-world-spinning
This is how the world looks like right now!
✓ bitbucket
✓ github
✓ npm
✓ twitterExits with code:
- 0: everything is okay
- 1: one of the status-checks reports service is bad/down
- 2: one of the status-checks failed
- 3: unexpected error
See help information:
$ is-my-world-spinning --helpAPI:
const checks = require("is-my-world-spinning");checks.main(options, callback)
Run the status-checks.
Parameters:
- options (Optional, Object):
- ui (Optional, Boolean, Default:
false): log output to terminal - filter (Optional, Array, Default:
null): names of checks to do
- ui (Optional, Boolean, Default:
- callback (Required, Function, signature:
callback(error, statuses, data)):- error: truthy if an unexpected error occurs
- statuses (Object): mapping from service names to their statuses
- data (Object): useful data for consumers
- data.constants (Object): constants used
- data.constants.status (Object): mapping from statuses to their values.
- data.constants.status.waiting (Number): check in
waitingstate - data.constants.status.good (Number): check in
goodstate - data.constants.status.moderate (Number): check in
moderatestate - data.constants.status.bad (Number): check in
badstate - data.constants.status.errored (Number): check in
erroredstate
license:
The MIT License (MIT)
Copyright (c) 2016 GochoMugo mugo@forfuture.co.ke