JSPM

site-status-snitcher

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q34703F
  • License ISC

Checks the status of a list of sites and inform you by email if there is a connection problem with any

Package Exports

  • site-status-snitcher

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (site-status-snitcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Site Status Snitcher 🚨

Checks the status of a list of sites and inform you by email if there is a connection problem with any.

Usage

var snitcherCheck = require('../')

var sites = [
    'http://google.com',
    'http://amazon.com',
    'http://facebook.com'
]

// Also you can use it without the email notification.
var props = {
    'sites': sites,
    'email-notification': {
        'transport': 'smtps://user%40gmail.com:password@smtp.gmail.com',
        'from': 'user@gmail.com',
        'to': ['user1@gmail.com', 'user2@gmail.com'],
        'subject': '[PERSONAL AUTO MESSAGE][ISSUE]',
        'text': 'There is an issue with a site!!! See below the error.'
    }
}

snitcherCheck(props)