check-url
check url every few minutes
your-file.js
const nodemailer = ;const smtpTransport = ; const CheckMaster = ; const checkMaster = period: 5000 // every 5s urls: 'http://google.com' 'http://github.com' { const mailOptions = from: 'you@gmail.com' to: 'admin@gmail.com' // eslint-disable-line id-length subject: 'Aaaaaaaaaight!' html: urlErrstatuses ; const transporter = nodemailer; transporter; }; checkMaster;