1.1.4 • Published 3 years ago

better-uptime v1.1.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

What is this module ?

This module help to 7/24 a project and you can uptime bot with this module easily!

How can i use ?

const { Uptime } = require("better-uptime")

var uptime = new Uptime({
  url: "https://your.domain/",//website link
  time: 1,//time
  time_type: 'minute',// you can use millisecond, minute, hour, day, week
  callback: "console.log('your.domain successfully uptime!')"//callback function action to be performed each time it uptimes
})

Documentation

MethodTypeDescription
new Uptime()ObjectYou can uptime your project or any other project

Variables you can use

VariableDescription
LinkShows pinged link
TimeShows how long it took to recur
TaskShows the action to be performed each time the link is pinged
Time_typeShows the time type

Example usage

var a = new Uptime({
  url: "https://your.domain.com/",
  time: 1,
  time_type: "minute",
  callback: "console.log('your.domain successfully uptime!',link, time_type, task, time)"
});

Methods

MethodTypeDescription
new Uptime()ObjectYou can uptime your project or any other project
1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago