1.2.8 β€’ Published 3 years ago

server-reachability v1.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ServerReachability

This is a node.js module, which allows you to check, if different types of servers are online. Check the other sections for information about the installation and usage. πŸ’ΎπŸ“‘

Installation

You can install it like every other npm package. Simply run npm install server-reachability in your termianl.

Usage

After installing, you can begin to use it. At first you should import it, like:

const sr = require('server-reachability');

isReachable

The isReachable function is asynchronous and gives back an boolean (true or false). So you have to await it. You have to give a hostname, a port and a timeout in milliseconds to it. If values are missing it will log it and allways return false. Code example:

// Imports...

async function fn() {
  console.log(await sr.isReachable('google.com', 80, 5000));
}

fn();

Output:

true

Support

If you have questions, you can ask me everytime on my Discord. Cick the badge on the top.

License

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago