UNPKG

jatg

Version:

Just Another Template Generator

13 lines (12 loc) 625 B
import type { Ora } from 'ora'; import { TemplateVariableReplacement } from '../models/template.model.js'; /** * Converts a source file into a template, replacing search strings into variables * * @param path The source files * @param output The output directory * @param variables The variables with needle strings that will be searched and replaced * @param overwrite Whether it will overwrite any files * @param ora The Ora's spinner instance */ export declare function convertFileIntoTemplate(path: string, output: string, variables: TemplateVariableReplacement[], overwrite?: boolean, ora?: Ora): Promise<void>;