(file: string, replace: string | RegExp, value: string | StringReplacer)
| 175 | |
| 176 | @bound |
| 177 | async replaceInFileAsync(file: string, replace: string | RegExp, value: string | StringReplacer) { |
| 178 | const entry = await this.readFileAsync(file) |
| 179 | entry.contents = entry.contents.replace(replace, value as any) |
| 180 | } |
| 181 | |
| 182 | @bound |
| 183 | async setFileContentsAsync(file: string, contents: string) { |
no test coverage detected