4.2.0 • Published 1 year ago

uptime-check v4.2.0

Weekly downloads
11
License
MIT
Repository
github
Last release
1 year ago

Uptime check

npm version Coverage Status

Checks uptime status of given url and provided keyword (optional).

How it works

Makes simple curl requests, gathers data on response and if requested also is looking for a keyword inside the document body.

If http code (response) is 2xx website is considered "up". If there is a keyword given for search, but the keyword cannot be found in the document body, website is considered "down".

v4 migration

From version 4 there is no userAgent option any more. If you used this, please migrate to:

check({
  headers: {
      'User-Agent': 'Your custom UA string',
  }
});

Example usage

check({
  url: 'https://example.com',
  keyword: 'example',
  redirectsLimit: 0
})
  .then(result => {
    /*
        see index.d.ts:Result
    */
  })
  .catch((err) => {
    /*
    err = '{Error} unexpected error.';
    */
  });
4.2.0

1 year ago

4.1.0

3 years ago

4.0.0

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

4 years ago

3.0.0-beta.1

4 years ago

3.0.0-beta.2

4 years ago

3.0.0-alpha.3

4 years ago

3.0.0-alpha.2

4 years ago

3.0.0-alpha.1

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.3

5 years ago

1.2.2

6 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago