@superherocheesecake/environment
v1.0.8
Published
Check the Environment based upon a regex pattern in the hostname
Downloads
4
Maintainers
Keywords
Readme
Check the Environment based upon a regex pattern in the hostname
NPM installation
npm i --save @superherocheesecake/environment
Require the module
import { environment } from '@superherocheesecake/environment';
Basic usage
var isLocal = environment.isLocal();
var isDevelopment = environment.isDevelopment();
var isStaging = environment.isStaging();
var isAcceptance = environment.isAcceptance();
var isProduction = environment.isProduction();
var rules = environment.getRulesForEnvironment();
Define your own pattern
Environment.define(environment, rules);