Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.0k views
in Technique[技术] by (71.8m points)

使用node如何查找代码仓库中所有的请求接口url

目前,有很多代码仓库需要找出请求url,如果使用编辑器去查找的话,费时费力,不是很好,并且不通用。所有考虑使用node代码,查找代码仓库中所有的请求接口url,但是没有好的思路。

麻烦各路大神提供一些思路,谢谢。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

感觉可以用nodeJS读取文件内容传入babel,根据请求URL的特点分析AST,找出这些URL


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...