Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vivekimsit/browser-is-online

Get the online status of the browser.
https://github.com/vivekimsit/browser-is-online

Last synced: 1 day ago
JSON representation

Get the online status of the browser.

Awesome Lists containing this project

README

        

# browser-is-online [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![npm](https://img.shields.io/npm/dm/localeval.svg)](https://www.npmjs.org/package/browser-is-online)

> Check the network connection

## Usage

```js
const isOnline = require('browser-is-online');

isOnline((err, status) => {
if (err) throw err;
changeText(status);
});
```

## License

MIT © [Vivek Poddar](http://github.com/vivekimsit)