Go to repository

Interface TaskReplaceOptions

This type represents the options that you can pass to the replace task.

interface TaskReplaceOptions {
    file: string;
    match: string;
    replace?: string;
}

Properties

Properties

file: string

The file on which to replace the text. If a folder or glob pattern is given, it acts recursively on that folder or glob.

match: string

The text or regular expression to be matched.

Optional
replace?: string

The text used to replaced the matched text. If none given, the empty string is used, so it acts as a delete text command.