UNPKG

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

15 lines (14 loc) 271 B
export class DataSource { name; index; _traceObject; constructor(name) { this.name = name; } trace() { return this._traceObject = this._traceObject ?? { name: this.name, index: this.index }; } }