13 unstable releases (3 breaking)

0.23.2 Nov 11, 2024
0.23.0 Sep 2, 2024
0.21.2 Jul 6, 2024
0.20.5 Feb 1, 2024
0.19.0 Mar 9, 2021

#81 in Web programming

Download history 5388/week @ 2024-10-22 5937/week @ 2024-10-29 4732/week @ 2024-11-05 6403/week @ 2024-11-12 7363/week @ 2024-11-19 6349/week @ 2024-11-26 6619/week @ 2024-12-03 7148/week @ 2024-12-10 7809/week @ 2024-12-17 6299/week @ 2024-12-24 8449/week @ 2024-12-31 11137/week @ 2025-01-07 9380/week @ 2025-01-14 12409/week @ 2025-01-21 16390/week @ 2025-01-28 13357/week @ 2025-02-04

53,882 downloads per month
Used in 53 crates (36 directly)

MIT license

18MB
566K SLoC

C 565K SLoC JavaScript 1K SLoC // 0.1% comments Rust 50 SLoC Scheme 43 SLoC // 0.1% comments

tree-sitter-typescript

CI discord matrix crates npm pypi

TypeScript and TSX grammars for tree-sitter.

Because TSX and TypeScript are actually two different dialects, this module defines two grammars. Require them as follows:

require("tree-sitter-typescript").typescript; // TypeScript grammar
require("tree-sitter-typescript").tsx; // TSX grammar

For Javascript files with flow type annotations you can use the tsx parser.

References

Dependencies