1.1.0 • Published 4 years ago
keep-online v1.1.0
Keep Online🎋
Let your Project Stay on as long as you Host in Some Clouds like Heroku, Glitch, And more.
Getting Started
npm i keep-online
NOTE: DO NOT USE THIS AT GLITCH.COM . IF YOU WANT, USE THIS AT OUTSIDE GLITCH (Like heroku, and etc)
Example
const ko = require("keep-online")
//Example 1
//Simple usage
ko.url("https://www.example.com")
//Default interval is 3 minute
//Example 2
//Self Interval (Minute)
ko.url("https://www.example.com", 5)
//Now, it will ping per 5 minute
//Example 3
//Custom User agent
ko.url("https://www.example.com", 5, "IPhone 7")
//When the default Iser agent doesn't work, You can use this Method
//You can also using Multiple Task.
ko.url("https://www.example.com")
ko.url("https://google.com")
Community
Any question or doubt can join our Discord Server.