Edit a file by replacing string occurrences. Returns EditResult with filesUpdate and occurrences.
edit(
filePath: string,
oldString: string,
newString: string,
replaceAll: boolean = false
): EditResult| Name | Type | Description |
|---|---|---|
filePath* | string | |
oldString* | string | |
newString* | string | |
replaceAll | boolean | Default: false |