(filePath: string, encoding: string = 'utf-8')
| 155 | } |
| 156 | |
| 157 | export async function readFileContent(filePath: string, encoding: string = 'utf-8'): Promise<string> { |
| 158 | return await fs.readFile(filePath, encoding as BufferEncoding); |
| 159 | } |
| 160 | |
| 161 | export async function writeFileContent(filePath: string, content: string): Promise<void> { |
| 162 | try { |
no outgoing calls
no test coverage detected