cloudcmd/server/template.js
2026-02-03 15:03:49 +02:00

9 lines
340 B
JavaScript

import path, {dirname} from 'node:path';
import {fileURLToPath} from 'node:url';
import readFilesSync from '@cloudcmd/read-files-sync';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const templatePath = path.join(__dirname, '..', 'tmpl/fs');
export default readFilesSync(templatePath, 'utf8');