itshappy-pinger

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i itshappy-pinger

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.7 kB

Total Files

3

Last publish

Collaborators

  • itshappy