Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability to use this module with own isitup server. #1

Merged
merged 3 commits into from
Sep 3, 2017
Merged

Added the ability to use this module with own isitup server. #1

merged 3 commits into from
Sep 3, 2017

Conversation

mhajder
Copy link
Contributor

@mhajder mhajder commented Sep 3, 2017

Usage

import isitup from 'isitup'; // or require it

// Optional parametr | Default 'https://isitup.org'
const optional_isitup_server = 'Myisitup.local'

isitup('github.com', optional_isitup_server ).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! :(
});

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4062cb7 on Rzeszow:master into ** on mamal72:master**.

@mamal72
Copy link
Owner

mamal72 commented Sep 3, 2017

@rzeszow Thanks for the PR! 🙏
Isn't it better to change version to 1.1.0 in package.json file? This version does not break the previous API. So, I think it's better to publish it as 1.1.0. 🤔

@mhajder
Copy link
Contributor Author

mhajder commented Sep 3, 2017

Ok

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 94966d2 on Rzeszow:master into ** on mamal72:master**.

@mamal72 mamal72 merged commit fc08105 into mamal72:master Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants