Is there any automatic way to replace string concatenation with formatted string?

Viewed 36

I have a js file which I want to change its textual content.

I want to change all string concatenation with formatted string.

Easy way free to replace these test options automatically?

Writing in python or any existing tool?

Say:

Logger.log("My name is "+name+" Hi!");

to

Logger.log(`My name is ${name} Hi!`);
0 Answers
Related