UNPKG

@rnaga/wp-node

Version:

👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**

14 lines • 946 B
import * as fs from "fs"; export declare const mkdir: (directory: string) => void; export declare const fileExists: (directory: string) => boolean; export declare const readFile: (filePath: string) => string | undefined; export declare const copyFile: (sourcePath: string, destinationPath: string, options?: fs.CopySyncOptions) => boolean; export declare const updateEnvFile: (envs: Record<string, any>, options: { environment?: string; distDir?: string; }) => void; export declare const readJsonFile: <T extends Record<string, any> = Record<string, any>>(filePath: string) => T | undefined; export declare const readJsonFiles: <T extends Record<string, any> = Record<string, any>>(directoryPath: string) => T | undefined; export declare const writeFile: (filePath: string, content: string) => void; export declare const writeDFile: (directoryPrefix: string, filename: string, content: string) => void; //# sourceMappingURL=files.d.ts.map