isdevjs
v1.0.3
Published
check if environment is dev or prod
Downloads
2
Maintainers
Readme
isdevjs
check if js environment is dev or prod
Returns boolean
import isDev from "isdevjs";
console.log(isDev());
Have it return values or function
import isDev from "isdevjs";
const func = isDev(
() => "dev",
() => "prod"
);
func();
const domain = isDev(window.location.hostname, "site.com");