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

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

A package for host check.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages