Skip to content
Avatar

Highlights

Organizations

@RagingFlame
qawemlilo/README.md

Sanibonani 👋🏾 ?

Hi, I'm Qawelesizwe Mlilo(or just Q), a South African based Software Developer. I write code for fun and profit.

Checkout ping-monitor, an uptime event emitter that I use to monitor my websites and APIs.

Installation

npm install ping-monitor

How to use

const UptimeMonitor = require('ping-monitor');

const monitor = new UptimeMonitor({
    website: 'http://github.com',
    interval: 10 // minutes
});


monitor.on('up', function (res, state) {
  console.log('%s is up', state.website);
});

monitor.on('down', function (res, state) {
  console.log('%s is down', state.website);
});

monitor.on('timeout', function (error, state) {
  console.log('%s timed out', state.website);
});

monitor.on('error', function (error, state) {
  console.error(error);
});

Popular repositories

  1. Node uptime app

    JavaScript 83 40

  2. Uptime Event Emitter

    JavaScript 71 25

  3. Download YouTube videos

    JavaScript 50 8

  4. A static blog generator for Node.js.

    JavaScript 50 4

  5. node-mysql Archived

    Building Apps with Bookshelf.js, MySQL, and Express

    JavaScript 39 11

  6. A Single Page Web Application for managing browser bookmarks

    JavaScript 30 10

2,190 contributions in the last year

Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Mon Wed Fri
Activity overview

Contribution activity

December 2020

2 contributions in private repositories Dec 1

Seeing something unexpected? Take a look at the GitHub profile guide.

You can’t perform that action at this time.