1.0.1 • Published 10 years ago

uptimerobot v1.0.1

Weekly downloads
13
License
MIT
Repository
github
Last release
10 years ago

uptimerobot

Build Status npm version License

Node API client and CLI for UptimeRobot

Node wrapper over the UptimeRobot API.

Installation

npm install --save uptimerobot

Usage

const uptimerobot = require('uptimerobot')

const urls = ['http://example.com', 'http://two.example.com']
const config = {
  apiToken: // some token
}

uptimerobot.monitor(urls, config)
  .then(res => console.log(res))
  .catch(error => console.log(error))

CLI

uptimerobot -h
#=> uptimerobot [command] [url [url...]]

uptimerobot monitor http://example.com http://google.com
#=> JSON result

Author

© 2016 Tom Vincent git@tlvince.com (https://tlvince.com)

License

Released under the MIT license.