constatic
Version:
Constatic is a CLI for creating and managing modern TypeScript projects, providing an organized structure and features that streamline development.
2 lines (1 loc) • 323 B
JavaScript
import{json as r}from"#helpers";import o from"node:path";class m{constructor(t){this.rootname=t;this.botPath=o.join(this.rootname,"templates","discord/bot")}botProps;botPath;async load(){const t=o.join(this.botPath,"properties.json");this.botProps=await r.read(t)}get bot(){return this.botProps}}export{m as CLITemplates};