# webmonitor

> A tool for monitoring the up time of websites.

Latest version **0.0.5** (published 2017-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install webmonitor
pnpm add webmonitor
yarn add webmonitor
bun add webmonitor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2017-11-30 |
| First published | 2017-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mani Nachimuthu MyCura Techonologies \| mycura.com \| mani@mycura.com) |
| Maintainers | manimycura |
| Keywords | monitor, uptime, website, response time |

## Links

- npm: https://www.npmjs.com/package/webmonitor
- Repository: https://github.com/nachimuthumani/webmonitor
- Homepage: https://github.com/nachimuthumani/webmonitor#readme
- Issues: https://github.com/nachimuthumani/webmonitor/issues
- npm.io page: https://npm.io/package/webmonitor

## Recent versions

- 0.0.5 (latest) — 2017-11-30
- 0.0.4 — 2017-11-30
- 0.0.3 — 2017-11-30
- 0.0.2 — 2017-11-30
- 0.0.1 — 2017-11-30

## README

# webmonitor

A tool for monitoring the up time and response time of websites.

# Installation
```
npm install webmonitor
```

# How to use
```
var Monitor = require('webmonitor')

var website = new Monitor(options)

website.on(event, callback(response){
  // Actions on response
})

```

# Options

* website (* required) - The full url of the website to be monitored.
* interval (defaults to 15) - Time interval (minutes) for checking website availability.

# Emitted Events

* up - Website operating as expected.
* down - Website is down.
* stop - Fired when the monitor has stopped.

# Example
```
var Monitor = require('webmonitor')

options = {
  website: 'https://www.google.com',
  interval: .3,
  up : function(response)
  {
    console.log(response);
  },
  down : function(response)
  {
	console.log(response);
  },
  stop :function(response)
  {
	console.log(response);
  }
}

options1 = {
  website: 'http://mycura.com/',
  interval: .3,
  up : function(response)
  {
    console.log(response);
  },
  down : function(response)
  {
	console.log(response);
  },
  stop :function(response)
  {
	console.log(response);
  }
}

var monitor = new Monitor(options);
var monitor1 = new Monitor(options1);


```

---
_Source: https://npm.io/package/webmonitor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
