node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

isitup

Build Status Coverage Status npm version dependencies devDependencies

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. 😁

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. ❤️

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