( input: string, transforms: StringTransform[] | null | undefined )
| 28 | * Transforms input string according to the given transform rules. |
| 29 | */ |
| 30 | export function transformString( |
| 31 | input: string, |
| 32 | transforms: StringTransform[] | null | undefined |
| 33 | ): string { |
| 34 | if (!transforms) { |
| 35 | return input; |
| 36 | } |
| 37 | return transforms.reduce((acc, transform) => { |
| 38 | return applySingleTransform(acc, transform); |
| 39 | }, input); |
| 40 | } |
| 41 | |
| 42 | async function applyTransformsOnFileContentAsync( |
| 43 | filePath: string, |
no test coverage detected
searching dependent graphs…