edit(
filePath: string,
oldString: string,
newString: string,
replaceAll: boolean
): MaybePromise<EditResult| Name | Type | Description |
|---|---|---|
filePath* | string | |
oldString* | string | |
newString* | string | |
replaceAll | boolean |
Edit a file by replacing string occurrences.
Absolute file path
String to find and replace
Replacement string
If true, replace all occurrences (default: false)