died

1.0.0 • Public • Published

Died

Test if a website has died

Usage

Install

> npm i died

Example

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i died

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.28 kB

    Total Files

    6

    Last publish

    Collaborators

    • draeder