1.1.1 • Published 2 years ago

host-checker v1.1.1

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

Host checker

You can check the user what the host he use!

Installations

npm install host-checker@latest

Screenshot

Note: The code of this Screenshot is this

Glitch: Glitch

Replit: Replit

Examples

// Check host
if (IsHosting("replit")) {
	console.log("This user is using Replit.");
} else {
	console.log("This user is NOT using Replit.");
}

if (IsHosting("github")) {
	console.log("This user is using GitHub.");
} else {
	console.log("This user is NOT using Github");
}

if (IsHosting("glitch")) {
	console.log("This user is using Glitch.");
} else {
	console.log("This user is NOT using Glitch.");
}

// See Host
console.log(UsingHosting()) // if user is not using a hosting. it return null.

Contribution

Feel free to pull request for fix something or add more host.

(Optional but recommended) Please add Prettier code formatter for neatness of this code!

More

license : MIT

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago