https://github.com/mamal72/isitup
:earth_asia: A simple client for isitup.org website
https://github.com/mamal72/isitup
api uptime
Last synced: 7 months ago
JSON representation
:earth_asia: A simple client for isitup.org website
- Host: GitHub
- URL: https://github.com/mamal72/isitup
- Owner: mamal72
- License: mit
- Created: 2016-07-22T19:47:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-18T09:46:55.000Z (over 7 years ago)
- Last Synced: 2024-10-13T08:46:07.800Z (about 1 year ago)
- Topics: api, uptime
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 10
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/mamal72/isitup)
[](https://coveralls.io/github/mamal72/isitup?branch=master)
[](https://badge.fury.io/js/isitup)

# isitup
**isitup** is a simple and small client for [isitup website](https://isitup.org) to check website status.## Installation
Clone the repo or install it from `npm`:
```bash
npm install --save isitup
```## Usage
```js
import isitup from 'isitup'; // or require itisitup('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:
```bash
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.
```bash
npm test
```