13 unstable releases (3 breaking)

new 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

#99 in Web programming

Download history 5995/week @ 2024-07-25 6068/week @ 2024-08-01 6948/week @ 2024-08-08 5938/week @ 2024-08-15 5910/week @ 2024-08-22 6328/week @ 2024-08-29 5928/week @ 2024-09-05 6219/week @ 2024-09-12 6545/week @ 2024-09-19 6002/week @ 2024-09-26 5876/week @ 2024-10-03 6055/week @ 2024-10-10 5380/week @ 2024-10-17 5230/week @ 2024-10-24 5916/week @ 2024-10-31 4858/week @ 2024-11-07

22,201 downloads per month
Used in 46 crates (34 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