isitup
v1.1.0
Published
A simple client for isitup.org website
Downloads
6
Readme
isitup
isitup is a simple and small client for isitup website to check website status.
Installation
Clone the repo or install it from npm
:
npm install --save isitup
Usage
import isitup from 'isitup'; // or require it
isitup('github.com').then(data => {
// Do what you want with `data`!
// data is an object with the following keys:
// ['domain', 'port', 'status_code', 'response_ip', 'response_code', 'response_time']
}).catch(err => {
// Oops! Errors! :(
});
Tests
Run the tests with following command:
npm test
Ideas?
Just fill an issue and describe it. I'll check it ASAP. :grin:
Contribution
You can fork the repository, improve or fix it and then send the pull requests back if you want to see them here. I really appreciate that. :heart:
Remember to write tests for your code. Execute the tests by running the following command and fix the errors if you get any.
npm test