To get all the strings from a Javascript file, you’ll need to parse the file to get a syntax tree (AST), then walk it.
You can do this trivially with the ESPrima library (for parsing) and Estraverse (for walking the AST).
Читать далее «Получение всех строковых переменных из Javascript файла»