As of 2026-09-04 (commit e73c923cb58e), microsoft/TypeScript contains 3,377,358 total lines: 1,794,163 code, 718,967 comments, 864,228 blank, across 39,075 files in 10 languages (top: JavaScript 39.9%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving microsoft/TypeScript to commit e73c923cb58e, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a very large codebase by counted code lines. Code represents 53.1% of all lines, comments represent 21.3%, and the repository averages 46 code lines per file. JavaScript accounts for 39.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| JavaScript | 13106 | 908961 | 715771 | 95026 | 98164 |
| TypeScript | 12770 | 754015 | 523917 | 152090 | 78008 |
| Go | 5095 | 1142894 | 463647 | 41171 | 638076 |
| JSON | 178 | 83433 | 83381 | 0 | 52 |
| TSX | 350 | 10594 | 6155 | 2827 | 1612 |
| YAML | 6 | 1109 | 1015 | 24 | 70 |
| GNU Style Assembly | 3 | 512 | 273 | 146 | 93 |
| Shell | 2 | 6 | 4 | 2 | 0 |
| Markdown | 57 | 2219 | 0 | 1666 | 553 |
| Plain Text | 7508 | 473615 | 0 | 426015 | 47600 |
Top language (JavaScript 39.9%). Generated at .
microsoft/TypeScript has 3,377,358 total lines, including 1,794,163 code lines, 718,967 comment lines, and 864,228 blank lines.
OctoCounts resolved the public GitHub repository to commit e73c923cb58e, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit e73c923cb58e on 2026-09-04T08:34:07.760732428+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: