(content: string)
| 802 | } |
| 803 | |
| 804 | write(content: string) { |
| 805 | if (!this.originalContent) { |
| 806 | this.originalContent = content |
| 807 | } |
| 808 | writeFileSync(this.path, content, 'utf8') |
| 809 | } |
| 810 | |
| 811 | replace(pattern: RegExp | string, newValue: string) { |
| 812 | const currentContent = readFileSync(this.path, 'utf8') |