As of 2026-08-22 (commit d6c4afddb2c5), microsoft/TypeScript contains 2,001,906 total lines: 1,178,593 code, 628,586 comments, 194,727 blank, across 21,553 files in 9 languages (top: JavaScript 59.9%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving microsoft/TypeScript to commit d6c4afddb2c5, 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 58.9% of all lines, comments represent 31.4%, and the repository averages 55 code lines per file. JavaScript accounts for 59.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| JavaScript | 12812 | 895330 | 705767 | 93048 | 96515 |
| Go | 727 | 375792 | 309029 | 30437 | 36326 |
| TypeScript | 377 | 195242 | 94814 | 86202 | 14226 |
| JSON | 171 | 67712 | 67689 | 0 | 23 |
| YAML | 6 | 1111 | 1017 | 24 | 70 |
| GNU Style Assembly | 3 | 512 | 273 | 146 | 93 |
| Shell | 2 | 6 | 4 | 2 | 0 |
| Markdown | 57 | 2219 | 0 | 1666 | 553 |
| Plain Text | 7398 | 463982 | 0 | 417061 | 46921 |
Top language (JavaScript 59.9%). Generated at 2026-08-22T03:06:58.130455071+00:00.
microsoft/TypeScript has 2,001,906 total lines, including 1,178,593 code lines, 628,586 comment lines, and 194,727 blank lines.
OctoCounts resolved the public GitHub repository to commit d6c4afddb2c5, 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 d6c4afddb2c5 on 2026-08-22T03:06:58.130455071+00:00.