flow-type-complexity:计算文件中每个流类型别名的复杂度

时间:2021-05-15 00:16:17
【文件属性】:
文件名称:flow-type-complexity:计算文件中每个流类型别名的复杂度
文件大小:34KB
文件格式:ZIP
更新时间:2021-05-15 00:16:17
cli flow flowtype type console-application 流型复杂度 计算文件中每个类型别名的复杂度。 安装 $ [sudo] npm install -g flow-type-complexity 用法 $ flow-type-complexity < filename> 默认情况下,仅显示5种复杂度最高的类型。 要查看所有类型的复杂性,请使用选项-a (或--show-all )。 查看help : $ flow-type-complexity --help 例子 1.js : // @flow export type TypeA = 5 | TypeB type TypeB = { a : number , b : 2 , c : null } type TypeC = { d : 4 , b : TypeB } $ flow-type-complexity 1.js 输出: TypeA: { unions: 1, p
【文件预览】:
flow-type-complexity-master
----.eslintrc.json(171B)
----.flowconfig(484B)
----.gitattributes(76B)
----src()
--------type-complexity.js(4KB)
--------util()
--------index.js(2KB)
----.babelrc(194B)
----flow-typed()
--------immutable_v3.8.x.js(20KB)
--------flow-parser_vx.x.x.js(447B)
--------ramda_v0.x.x.js(62KB)
--------yargs_v10.x.x.js(7KB)
----types()
--------ast.js(19KB)
--------ast.ts(18KB)
----LICENSE(1KB)
----flow()
--------apropos.js(7KB)
--------flow-parser.js(441B)
--------memoizee.js(487B)
--------babylon.j__s(261B)
----README.md(2KB)
----.editorconfig(188B)
----.gitignore(122B)
----bin()
--------flow-type-complexity(40B)
----.eslintignore(40B)
----package.json(2KB)

网友评论