itshappy-pinger
v1.0.0
Published
This will uptime your project on repl without using uptimerobot or website pingers!
Maintainers
Readme
What is this?
This will uptime your project on repl without using uptimerobot or website pingers!
Installation
$ npm install itshappy-pinger --saveExample
In this example we'll use express.
const pinger = require('itshappy-pinger');
const express = require('express');
const app = express();
const port = 4000;
app.use('/', (req, res) => {
res.status(200).json("Hello World");
});
app.listen(port, () => {
console.log('Your app is listening on port' + port);
});
const url = "https://<your_project_name_on_repl>.<your_username_on_repl>.repl.co";
pinger.pingStart(url) // Start pingerMethods
pinger.pingStart(host) // Start
pinger.pingEnd(host) // EndAdd me on discord ItsHappy#3837
