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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01

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