microsoft/TypeScript SLOC report

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
JavaScript128128953307057679304896515
Go7273757923090293043736326
TypeScript377195242948148620214226
JSON1716771267689023
YAML6111110172470
GNU Style Assembly351227314693
Shell26420
Markdown57221901666553
Plain Text7398463982041706146921

Top language (JavaScript 59.9%). Generated at 2026-08-22T03:06:58.130455071+00:00.

Report FAQ

How many lines of code does microsoft/TypeScript have?

microsoft/TypeScript has 2,001,906 total lines, including 1,178,593 code lines, 628,586 comment lines, and 194,727 blank lines.

How was the microsoft/TypeScript line count measured?

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.

What commit was counted for microsoft/TypeScript?

This OctoCounts report was generated from main at commit d6c4afddb2c5 on 2026-08-22T03:06:58.130455071+00:00.