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

#97 in Web programming

Download history 6147/week @ 2024-08-10 5791/week @ 2024-08-17 6108/week @ 2024-08-24 6350/week @ 2024-08-31 5631/week @ 2024-09-07 6216/week @ 2024-09-14 6903/week @ 2024-09-21 5713/week @ 2024-09-28 6078/week @ 2024-10-05 5673/week @ 2024-10-12 5356/week @ 2024-10-19 5763/week @ 2024-10-26 5281/week @ 2024-11-02 5307/week @ 2024-11-09 7775/week @ 2024-11-16 6213/week @ 2024-11-23

25,603 downloads per month
Used in 50 crates (35 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