Skip to content

Z3NTL3/Uptime-Pix4-Robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
})();