Pin
Is my site up? Node.js edition.
Install
$ npm install pin
Usage
var pin = ; // in ms ;
Both "up" and "down" are optional.
Check if text is present in the body:
var pin = ; // in ms text'Google'
Check if response is back under maximum duration:
var pin = ; // in ms // in ms
Register custom validator:
var pin = ; var { // your custom checks here // it must return bool return true;}; // in ms
Register custom headers:
var pin = ; // in ms
Features
- Super minimalistic api
- Custom validators
- Check if text is present in the body
- Check response time
- Custom headers
Tests
$ npm install
$ make test
License
MIT License