@halfbug/is_base_url
v1.0.2
Published
check the base url
Downloads
1
Readme
use to check the if the call is form localhost or form live domain.
Install via NPM:
npm install @halfbug/is_base_url --save
Usage
import baseurl from "@halfbug/is_base_url";
baseurl == localhost ? "its local" : "any other domain";