templates-mo
Version:
Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting
20 lines (19 loc) • 508 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const helpers_1 = require("./utilities/helpers");
class Config {
constructor() {
this.configurations = {};
}
load(configObject) {
this.configurations = (0, helpers_1.defaults)(configObject, this.configurations);
return this;
}
get(prop) {
return this.configurations[prop];
}
set(prop, value) {
this.configurations[prop] = value;
}
}
exports.default = Config;