Is there a way to check where the nodejs connection comes from?
in javascript we do
if (window.location.host == "localhost")
{
}
however I have no idea how to do this in nodejs, I want to do (then I will only need to save 1 folder for git repo)
if (window.location.host == "localhost"){
}else{
}
source
share