使用任何脚本在js中生成跨多个文件的现有函数列表
Generate a list of existing function across multiple files in js using any script
我在特定路径中有很多 javascript 文件。每个文件都有很多功能。根据我的要求,我必须在 excel sheet 中记录所有函数名称。那么有什么方法可以使用任何脚本或工具自动执行这些操作吗?
预期输出
格式->文件名-函数名
Sample -> samplejs.js - Test
我找到的解决方案是-Show Functions VS Code Extension
修改setting.json此扩展以获取JS文件功能。
{
"extensions": [
".ts",
".php",
".js"
],
"native": "/(?:^|\s)function\s+\w+\(/mg",
"display": "/\s*function\s+(\w+)/1",
"sort": 0
},
我在特定路径中有很多 javascript 文件。每个文件都有很多功能。根据我的要求,我必须在 excel sheet 中记录所有函数名称。那么有什么方法可以使用任何脚本或工具自动执行这些操作吗?
预期输出 格式->文件名-函数名
Sample -> samplejs.js - Test
我找到的解决方案是-Show Functions VS Code Extension
修改setting.json此扩展以获取JS文件功能。
{
"extensions": [
".ts",
".php",
".js"
],
"native": "/(?:^|\s)function\s+\w+\(/mg",
"display": "/\s*function\s+(\w+)/1",
"sort": 0
},