Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Scoooolzs/Host-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



npm version npm downloads

Host checker

You can check the user what the host he use!

Installations

npm install host-checker@latest

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

Releases

No releases published

Packages

No packages published