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

https://github.com/draeder/died

Test if a website has died
https://github.com/draeder/died

Last synced: about 1 month ago
JSON representation

Test if a website has died

Awesome Lists containing this project

README

        

# Died
Test if a website has died

## Usage
### Install
`> npm i died`

### Example
```js
const Died = require('died')
let url = 'https://example.com/'

let died = new Died(url, 10)

died.on('result', (result, error) => {
if(!result) console.log(url, 'is living')
else console.log(url, 'has died')
})

died.stop() // stop testing

died.resume() // resume testing
```