provenance:可视化JS中函数之间的依赖关系

时间:2021-05-18 23:00:22
【文件属性】:
文件名称:provenance:可视化JS中函数之间的依赖关系
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-18 23:00:22
JavaScript 出处 一个CLI脚本,该脚本在npm包内的JS文件中占据一个位置,并输出在该位置调用该函数的所有函数的有向图。 安装,或: vim + graphviz + quicklook 我的出处设置要求: iojs v2.x graphviz(通过自制程序) 我写了这篇文章,所以我可以将sx混搭在一起,并快速抬起头来显示所要调用的函数。 为此,我编写了一个脚本将stdin存储为临时文件,并使用qlmanage快速显示它: #! /bin/bash # call this file "ql" and `chmod +x` it tmpfile= $( mktemp -t ql ) mv " $tmpfile " {,.png} tmpfile= ${tmpfile} .png cat > " $tmpfile " qlmanage -p $tmpfile >& /dev/
【文件预览】:
provenance-master
----bin()
--------provenance(294B)
----package.json(493B)
----lib()
--------provenance.js(5KB)
----README.md(2KB)

网友评论