Skip to content

danielpza/typescript-ast-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-ast-debug

npm version Conventional Commits code style: prettier

Outputs ast of typescript source file

Install

$ npm i -g typescript-ast-debug

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

About

Outputs ast of typescript source file

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published