# js-network-monitor

> js-network-monitor ==================

Latest version **1.0.9** (published 2016-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-network-monitor
pnpm add js-network-monitor
yarn add js-network-monitor
bun add js-network-monitor
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2016-09-07 |
| First published | 2016-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marcos Paliari |
| Maintainers | dflourusso, neves, paliari |
| Keywords | js-network-monitor, js, network, monitor |

## Links

- npm: https://www.npmjs.com/package/js-network-monitor
- npm.io page: https://npm.io/package/js-network-monitor

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.9 (latest) — 2016-09-07
- 1.0.8 — 2016-09-07
- 1.0.7 — 2016-09-06
- 1.0.6 — 2016-09-06
- 1.0.5 — 2016-09-06
- 1.0.3 — 2016-09-05

## README

js-network-monitor
==================

Monitor internet connection with javascript

#### Install with bower

```
$ bower install --save js-network-monitor
```

#### Install with npm

```
$ npm install --save js-network-monitor
```

### Usage

```html
<!-- Compiled JavaScript -->
<script src="bower_components/dist/js-network-monitor.js"></script>

<script>
  var options = {
    url: '/favicon.ico', // default
    timeout: 3000, // default 3 seconds
    sleep_delay: 5000, // default 5 seconds
  };
  var js_network_monitor = new JsNetworkMonitor(options);
  js_network_monitor.on('online', function() {
      console.log('you are online.');
    }
  );
  js_network_monitor.on('offline', function() {
      console.log('you are offline.');
    }
  );
  js_network_monitor.start();
</script>

```

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