pin

Is my site up? Node.js edition.

Pin

Is my site up? Node.js edition.

$ npm install pin
var pin = require('pin');
 
pin('http://google.com/')
  .interval(10000) // in ms 
  .up(function(response) {
      console.log(response);
   })
  .down(function(errorresponse) {
    console.log(error, response);
  });

Both "up" and "down" are optional.

  • Super minimalistic api
  • Custom drivers, switch between superagent, request or your awesome driver
  • Check if the response contains supplied text
  • Custom headers
$ npm install
$ make test

MIT License