0.3.0 • Published 12 years ago

pin v0.3.0

Weekly downloads
59
License
-
Repository
github
Last release
12 years ago

Build Status

Pin

Is my site up? Node.js edition.

Install

$ npm install pin

Usage

var pin = require('pin');

pin('http://google.com/')
  .interval(10000) // in ms
  .up(function(response) {
      console.log(response);
   })
  .down(function(error, response) {
    console.log(error, response);
  });

Both "up" and "down" are optional.

Features

  • Super minimalistic api
  • Custom drivers, switch between superagent, request or your awesome driver

Todo

  • Check if the response contains supplied text
  • Custom headers

Tests

$ npm install
$ make test

License

MIT License

0.3.0

12 years ago

0.2.0

12 years ago

0.1.0

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago