2021-10-15 16:57:26 +00:00
|
|
|
const args = require("args-parser")(process.argv);
|
|
|
|
const demoMode = args["demo"] || false;
|
|
|
|
|
2022-01-04 11:21:53 +00:00
|
|
|
const badgeConstants = {
|
|
|
|
naColor: "#999",
|
|
|
|
defaultUpColor: "#66c20a",
|
|
|
|
defaultDownColor: "#c2290a",
|
|
|
|
defaultPingColor: "blue", // as defined by badge-maker / shields.io
|
2022-01-04 15:00:21 +00:00
|
|
|
defaultStyle: "flat",
|
|
|
|
defaultPingValueSuffix: "ms",
|
|
|
|
defaultPingLabelSuffix: "h",
|
|
|
|
defaultUptimeValueSuffix: "%",
|
|
|
|
defaultUptimeLabelSuffix: "h",
|
2022-01-04 11:21:53 +00:00
|
|
|
};
|
|
|
|
|
2021-10-15 16:57:26 +00:00
|
|
|
module.exports = {
|
|
|
|
args,
|
2022-01-04 11:21:53 +00:00
|
|
|
demoMode,
|
2022-01-04 15:01:40 +00:00
|
|
|
badgeConstants,
|
2021-10-15 16:57:26 +00:00
|
|
|
};
|