(filePath: string, match: RegExp | string, replacement: string)
| 59 | } |
| 60 | |
| 61 | export function replaceInFile(filePath: string, match: RegExp | string, replacement: string) { |
| 62 | return readFile(filePath).then((content: string) => |
| 63 | writeFile(filePath, content.replace(match, replacement)), |
| 64 | ); |
| 65 | } |
| 66 | |
| 67 | export function appendToFile(filePath: string, text: string, options?: any) { |
| 68 | return readFile(filePath).then((content: string) => |
no test coverage detected