https://github.com/danielpza/typescript-ast-debug
Outputs ast of typescript source file
https://github.com/danielpza/typescript-ast-debug
ast debugging typescript
Last synced: 12 months ago
JSON representation
Outputs ast of typescript source file
- Host: GitHub
- URL: https://github.com/danielpza/typescript-ast-debug
- Owner: danielpza
- Created: 2019-07-25T15:10:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-13T22:26:47.000Z (almost 6 years ago)
- Last Synced: 2025-06-13T08:07:39.777Z (12 months ago)
- Topics: ast, debugging, typescript
- Language: TypeScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# typescript-ast-debug
[](https://www.npmjs.com/package/typescript-ast-debug)
[](https://conventionalcommits.org)
[](https://github.com/prettier/prettier)
Outputs ast of typescript source file
## Install
```sh
$ npm i -g typescript-ast-debug
```
## Example
Use `tsast filename.ts`, outputs to stdout:
```sh
$ 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
```