tornado-cli/scripts/figlet-font.ts

12 lines
416 B
TypeScript
Raw Normal View History

2024-04-24 20:26:02 +03:00
import fs from 'fs'
let figletStandard = fs.readFileSync('./node_modules/figlet/importable-fonts/Standard.js', { encoding: 'utf8' }) as string;
figletStandard = figletStandard.replace('export default `', '')
figletStandard = figletStandard.replace(' `', '')
fs.writeFileSync('./src/fonts/figletStandard.ts', `
export const figletStandard: string = \`${figletStandard}\`;
export default figletStandard;
`)