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

#165 in Web programming

Download history 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 5877/week @ 2024-11-23 6868/week @ 2024-11-30 6698/week @ 2024-12-07 8611/week @ 2024-12-14 5063/week @ 2024-12-21 8193/week @ 2024-12-28 10517/week @ 2025-01-04 9431/week @ 2025-01-11

34,497 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