{"id":17956856,"url":"https://github.com/gekorm/astprinter","last_synced_at":"2025-06-22T06:34:51.813Z","repository":{"id":30322099,"uuid":"33874355","full_name":"GeKorm/astprinter","owner":"GeKorm","description":"A command line tool that prints the AST of a dart file.","archived":false,"fork":false,"pushed_at":"2015-11-07T16:17:58.000Z","size":124,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T01:11:17.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeKorm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-13T14:47:38.000Z","updated_at":"2021-12-06T07:08:37.000Z","dependencies_parsed_at":"2022-09-20T22:02:32.486Z","dependency_job_id":null,"html_url":"https://github.com/GeKorm/astprinter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GeKorm/astprinter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeKorm%2Fastprinter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeKorm%2Fastprinter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeKorm%2Fastprinter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeKorm%2Fastprinter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeKorm","download_url":"https://codeload.github.com/GeKorm/astprinter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeKorm%2Fastprinter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261249129,"owners_count":23130492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T10:43:20.477Z","updated_at":"2025-06-22T06:34:46.802Z","avatar_url":"https://github.com/GeKorm.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AstPrinter\n\nA command line tool that prints the expanded AST (Abstract Syntax Tree) of a dart file.\n\n![Output example](https://raw.githubusercontent.com/GeKorm/docimages/master/astprinter/AST.png)\n\nThe above image was created using ```ast \u003cpath\u003e \u003e output.txt```, then\nopening output.txt in Sublime Text and adding Dart syntax highlighting.\n\n## Usage\n\nFirst, activate the package with pub global\n\n    pub global activate astprinter\nYou must manually add the pub cache bin directory to your PATH.\nPub will warn you if you haven't already.\n    \nTo print the AST in the console, run ```ast \u003c\"absolutePathToDartFile\"\u003e \u003cType(OPTIONAL)\u003e \u003c-n(OPTIONAL)\u003e```\n\n    ast \"C:\\Path\\web\\main.dart\" Declaration\nThe optional argument ```Type``` will print all AST nodes that are subtypes of ```Type```.\nMultiple types can be entered as arguments.\nTo print Types without their subtypes append -n. \n\nFor example\n\n     ast \"C:\\Path\\web\\main.dart\" Token\nwill print all tokens, including ```StringToken```, ```BeginToken```, ```KeywordToken```\nand ```Token```. However,\n\n     ast \"C:\\Path\\web\\main.dart\" Token -n\nwill only print ```Token ``` nodes, such as ```@```, ```=```, ```;``` etc.\n\n## Features and bugs\n\nPlease file feature requests and bugs on [GitHub][tracker].\n\n[tracker]: https://github.com/GeKorm/astprinter/issues/new\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgekorm%2Fastprinter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgekorm%2Fastprinter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgekorm%2Fastprinter/lists"}