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 7736/week @ 2024-11-18 5797/week @ 2024-11-25 7007/week @ 2024-12-02 7136/week @ 2024-12-09 8125/week @ 2024-12-16 5334/week @ 2024-12-23 8627/week @ 2024-12-30 10409/week @ 2025-01-06 10346/week @ 2025-01-13 11579/week @ 2025-01-20 15290/week @ 2025-01-27 16043/week @ 2025-02-03 19071/week @ 2025-02-10 17686/week @ 2025-02-17 18834/week @ 2025-02-24 20574/week @ 2025-03-03

77,474 downloads per month
Used in 63 crates (42 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