wj-config
Version:
Javascript configuration module for NodeJS and browser frameworks such as React that works like ASP.net configuration where data sources are specified (usually JSON files) and environment variables can contribute/overwrite values by following a naming con
23 lines (22 loc) • 559 B
JavaScript
/**
* Environment definition class used to specify the current environment as an object.
*/
export class EnvironmentDefinition {
/**
* Gets the environment's name.
*/
name;
/**
* Gets the environment's assigned traits.
*/
traits;
/**
* Initializes a new instance of this class.
* @param name The name of the current environment.
* @param traits The traits assigned to the current environment.
*/
constructor(name, traits) {
this.name = name;
this.traits = traits ?? 0;
}
}