(text: string, modules: STMModule[])
| 141 | * Apply enabled STM modules to text |
| 142 | */ |
| 143 | export function applySTMs(text: string, modules: STMModule[]): string { |
| 144 | let result = text |
| 145 | |
| 146 | for (const module of modules) { |
| 147 | if (module.enabled) { |
| 148 | result = module.transformer(result, module.config) |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | return result |
| 153 | } |
no outgoing calls
no test coverage detected