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

#93 in Web programming

Download history 5791/week @ 2024-08-19 6344/week @ 2024-08-26 6198/week @ 2024-09-02 5504/week @ 2024-09-09 6550/week @ 2024-09-16 6604/week @ 2024-09-23 5795/week @ 2024-09-30 6187/week @ 2024-10-07 5414/week @ 2024-10-14 5251/week @ 2024-10-21 5744/week @ 2024-10-28 4964/week @ 2024-11-04 5874/week @ 2024-11-11 7736/week @ 2024-11-18 5797/week @ 2024-11-25 7007/week @ 2024-12-02

26,787 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