microsoft / TypeScript-DOM-lib-generator
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 38 files with 9,203 lines of code.
    • 3 very long files (5,960 lines of code)
    • 1 long files (629 lines of code)
    • 4 medium size files (1,319 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (680 lines of code)
    • 25 very small files (615 lines of code)
64% | 6% | 14% | 7% | 6%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
jsonc87% | 12% | 0% | 0% | 0%
ts39% | 0% | 35% | 11% | 14%
js0% | 0% | 0% | 75% | 24%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
inputfiles87% | 12% | 0% | 0% | 0%
src/build55% | 0% | 38% | 0% | 5%
src0% | 0% | 39% | 41% | 18%
deploy0% | 0% | 0% | 83% | 16%
src/build/bcd0% | 0% | 0% | 55% | 44%
src/build/webref0% | 0% | 0% | 0% | 100%
src/build/utils0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
unittests/files0% | 0% | 0% | 0% | 100%
unittests0% | 0% | 0% | 0% | 100%
Longest Files (Top 38)
File# lines# units
jsonc
overridingTypes.jsonc
in inputfiles
3203 -
emitter.ts
in src/build
1469 99
jsonc
addedTypes.jsonc
in inputfiles
1288 -
jsonc
removedTypes.jsonc
in inputfiles
629 -
widlprocess.ts
in src/build
485 34
helpers.ts
in src/build
309 19
build.ts
in src
291 11
expose.ts
in src/build
234 14
changelog.ts
in src
169 17
createTypesPackages.js
in deploy
145 6
fetch-comment.ts
in src
137 7
deployChangedPackages.js
in deploy
121 5
mapper.ts
in src/build/bcd
108 3
test.ts
in src
89 4
bcd.ts
in src/build
71 4
keep-alive.ts
in src/build/bcd
64 -
legacy-namespace.ts
in src/build
57 3
elements.ts
in src/build/webref
42 2
fetch-mdn.ts
in src
40 2
migrate.js
in deploy
28 -
dangerfile.js
in root
27 -
versionChangelog.js
in deploy
23 -
stable.ts
in src/build/bcd
23 1
idl.ts
in src/build/webref
20 1
record.ts
in src/build/utils
19 2
map.ts
in src/build/utils
17 2
css.ts
in src/build/webref
16 2
browser-specs.ts
in src/build
12 1
fs.ts
in src/build/utils
12 1
css.ts
in src/build/utils
10 2
version.ts
in src
9 -
url.ts
in unittests/files
9 -
index.js
in unittests
9 -
eventlistener.ts
in unittests/files
8 1
eventsource.ts
in unittests/files
6 -
differingaccessors.ts
in unittests/files
2 -
childnode.ts
in unittests/files
1 -
htmldocument.ts
in unittests/files
1 -
Files With Most Units (Top 20)
File# lines# units
emitter.ts
in src/build
1469 99
widlprocess.ts
in src/build
485 34
helpers.ts
in src/build
309 19
changelog.ts
in src
169 17
expose.ts
in src/build
234 14
build.ts
in src
291 11
fetch-comment.ts
in src
137 7
createTypesPackages.js
in deploy
145 6
deployChangedPackages.js
in deploy
121 5
bcd.ts
in src/build
71 4
test.ts
in src
89 4
mapper.ts
in src/build/bcd
108 3
legacy-namespace.ts
in src/build
57 3
css.ts
in src/build/utils
10 2
map.ts
in src/build/utils
17 2
record.ts
in src/build/utils
19 2
css.ts
in src/build/webref
16 2
elements.ts
in src/build/webref
42 2
fetch-mdn.ts
in src
40 2
stable.ts
in src/build/bcd
23 1
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 59 long lines.

File# lines# units# long lines
jsonc
overridingTypes.jsonc
in inputfiles
3203 - 42
jsonc
addedTypes.jsonc
in inputfiles
1288 - 7
emitter.ts
in src/build
1469 99 5
dangerfile.js
in root
27 - 3
jsonc
removedTypes.jsonc
in inputfiles
629 - 1
index.js
in unittests
9 - 1