Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cron-ping

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron-ping

Background process that pings addresses.

  • 0.0.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

cron-ping

Background process module to ping your websites.

Installation

npm install cron-ping

Usage

var cronPing = require('cron-ping');

var sites = ['http://www.google.com','http://www.yahoo.com','http://www.bing.com'];

var cb = function(res, site){
  console.log('Got ' + res.statusCode + ' for ' + site);
});
var stop = function(){
  console.log('Monitoring has stopped');
};

cronPing.monitor('0,10,20,30,40,50 * * * * *', sites, cb, stop);

API

  • monitor(pattern, sites, cb, stop)
    • pattern: Cron Job pattern. More on cron patterns
    • sites: Array of string urls for which you want to monitor.
    • cb: callback that takes two arguments, res, and site.
    • stop: callback to be called when monitoring is stoppped

Keywords

FAQs

Package last updated on 25 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc