npm.io
1.0.3 • Published 5 years ago

uptime-system

Licence
Apache-2.0
Version
1.0.3
Deps
5
Size
40 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

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("uptime-system")

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

Method Type Description
new Uptime() Object You can uptime your project or any other project

'new Uptime()' options

Option Type Description
url: "https://your.domain" String You can add your link with this option
time: 1 Number You specify interval
time_type: "minute" String You specify interval type
callback: "console.log('your.domain successfully uptime!')" String You specify what uptime-system do on every uptime

Keywords