Checks if a website is down for everyone
npm install is-site-downChecks if a website is down for everyone





```
$ npm install is-site-down --save
or
``
yarn add is-site-down
`js
const { isSiteDown } = require('is-site-down');
isSiteDown('https://about.theanubhav.com').then(console.log);
`
Above call returns following response
`json`
{
"host": "about.theanubhav.com",
"isitdown": false,
"response_code": 200
}
#### isSiteDown
- returns - Promise
- arguments - siteUrl // e.g theanubhav.com
- Result Data
1. Success :
{
"host": "about.theanubhav.com",
"isitdown": false,
"response_code": 200
}
Description properties of icon object:
- "host" - string, URL which was queried for status
- "isitdown" : Boolean, whether site was down
- "response_code", number, response returned by server
2. Failure :
All error messages have the following format
{ error: 'Too many requests to the same site.' }
is-site-down uses HTTP API from isitdown.site. Refer service API sample here.
Currently, is-site-down is supported for Nodejs Environment only. Please open a issue for browser support, if required.
- is-site-down-cli CLI for is-site-down module
Suggestions and PRs are welcome!
Please create issue or open PR request for contribution.

refer LICENSE` file in this repository.