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

#91 in Web programming

Download history 6022/week @ 2024-09-11 6575/week @ 2024-09-18 6113/week @ 2024-09-25 5805/week @ 2024-10-02 6313/week @ 2024-10-09 5397/week @ 2024-10-16 5064/week @ 2024-10-23 5998/week @ 2024-10-30 4706/week @ 2024-11-06 6856/week @ 2024-11-13 7017/week @ 2024-11-20 6406/week @ 2024-11-27 6545/week @ 2024-12-04 7823/week @ 2024-12-11 6970/week @ 2024-12-18 5414/week @ 2024-12-25

27,843 downloads per month
Used in 52 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