typescript-ast-debug

0.1.0 • Public • Published

typescript-ast-debug

Outputs ast of typescript source file

Example

Use tsast filename.ts, outputs to stdout:

$ cat input.ts
console.log("Hello World");
$ tsast input.ts
{"kind":"SourceFile","text":"","children":[{"kind":"SyntaxList","text":"","children":[]},{"kind":"EndOfFileToken","text":"","children":[]}]}
$ tsast input.ts | fx

Package Sidebar

Install

npm i typescript-ast-debug

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

3.2 kB

Total Files

5

Last publish

Collaborators

  • danielpanpm