/Uptime-Pix4-Robot

Uptime robot library for Pix4 services

Primary LanguageJavaScript

Uptime Pix4

A uptime robot for Pix4 services

Example

const { UptimeCheck } = require("uptime-pix4");

(async () => {
  const robot = new UptimeCheck(); // init class
  robot.humanify([
    {
      "cache-control": "no-cache",
    },
  ]); // used user agents at the request

  await robot.checkIfUp().catch((err) => {
    // check if website is accessable
    console.log("oops..:", err);
  });

  console.log(robot.status); // see status information
})();