isitup is a simple and small client for isitup website to check website status.
Clone the repo or install it from npm
:
npm install --save isitup
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! :(
});
Run the tests with following command:
npm test
Just fill an issue and describe it. I'll check it ASAP. 😁
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. ❤️
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