itshappy-pinger
v1.0.0
Published
This will uptime your project on repl without using uptimerobot or website pingers!
Downloads
2
Maintainers
Readme
What is this?
This will uptime your project on repl without using uptimerobot or website pingers!
Installation
$ npm install itshappy-pinger --save
Example
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 pinger
Methods
pinger.pingStart(host) // Start
pinger.pingEnd(host) // End
Add me on discord ItsHappy#3837