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
- Host: GitHub
- URL: https://github.com/draeder/died
- Owner: draeder
- License: mit
- Created: 2022-04-13T13:22:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-13T13:24:06.000Z (about 3 years ago)
- Last Synced: 2025-03-15T16:49:01.636Z (about 2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```