#incremental #parsing #typescript #tsx

tree-sitter-typescript

Typescript grammar for the tree-sitter parsing library

2 unstable releases

0.20.0 Oct 4, 2021
0.19.0 Mar 9, 2021

#93 in Parser tooling

Download history 65/week @ 2021-08-11 56/week @ 2021-08-18 43/week @ 2021-08-25 61/week @ 2021-09-01 69/week @ 2021-09-08 676/week @ 2021-09-15 516/week @ 2021-09-22 782/week @ 2021-09-29 724/week @ 2021-10-06 408/week @ 2021-10-13 410/week @ 2021-10-20 251/week @ 2021-10-27 347/week @ 2021-11-03 404/week @ 2021-11-10 201/week @ 2021-11-17 542/week @ 2021-11-24

1,532 downloads per month
Used in 4 crates (2 directly)

MIT license

12MB
415K SLoC

C 414K SLoC JavaScript 791 SLoC // 0.0% comments Scheme 42 SLoC // 0.1% comments Rust 37 SLoC

tree-sitter-typescript

Build Status Build status

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

References

Dependencies

~1.4–2MB
~52K SLoC