1.0.8 • Published 3 years ago
@superherocheesecake/environment v1.0.8
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);
1.0.8
3 years ago
1.0.7-canary.4
3 years ago
1.0.7-canary.3
3 years ago
1.0.7
4 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago