jetup
Version:
Jetup: JavaScript Project Setup! Jetting-up your next JS project in seconds with one command, using fully modular, customizable presets, instantly ready to code!.
16 lines • 549 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseNamedModule = void 0;
class BaseNamedModule {
setRegistry(registry) {
if (!this.registry)
throw new Error(`${this.name}.registry is not configured`);
registry.register(this.registry, this);
}
get name() {
const name = this.constructor.name.replace('Module', '');
return name.charAt(0).toLowerCase() + name.substring(1);
}
}
exports.BaseNamedModule = BaseNamedModule;
//# sourceMappingURL=named.js.map