{"id":13725746,"url":"https://github.com/babel-utils/ast-pretty-print","last_synced_at":"2026-03-07T13:02:48.944Z","repository":{"id":66094704,"uuid":"91297632","full_name":"babel-utils/ast-pretty-print","owner":"babel-utils","description":"A pretty printer for AST-like structures","archived":false,"fork":false,"pushed_at":"2017-09-08T08:42:27.000Z","size":14,"stargazers_count":130,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T20:05:42.655Z","etag":null,"topics":["ast","babel","babel-util","pretty-print"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/babel-utils.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-15T05:15:08.000Z","updated_at":"2025-02-09T06:31:40.000Z","dependencies_parsed_at":"2023-03-05T15:30:53.725Z","dependency_job_id":null,"html_url":"https://github.com/babel-utils/ast-pretty-print","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/babel-utils/ast-pretty-print","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fast-pretty-print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fast-pretty-print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fast-pretty-print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fast-pretty-print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babel-utils","download_url":"https://codeload.github.com/babel-utils/ast-pretty-print/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fast-pretty-print/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278712683,"owners_count":26032741,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ast","babel","babel-util","pretty-print"],"created_at":"2024-08-03T01:02:33.333Z","updated_at":"2025-10-07T02:57:21.257Z","avatar_url":"https://github.com/babel-utils.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ast-pretty-print\n\n\u003e A pretty printer for AST-like structures\n\n- Super fast (useful for build tools)\n- Concise output (useful for debugging)\n- Consistent output (useful for snapshot testing)\n\n```js\nimport parser from 'parser';\nimport printAST from 'ast-pretty-print';\n\nlet code = `...`;\nlet ast = parser.parse(code);\nlet printed = printAST(ast);\n\nconsole.log(printed);\n```\n\n```js\nNode \"FunctionDeclaration\"\n  __clone: [Function __clone]\n  async: false\n  body: Node \"BlockStatement\" (1:29, 1:31)\n    body: Array []\n    directives: Array []\n  expression: false\n  generator: false\n  id: Node \"Identifier\" (1:9, 1:10)\n    name: \"a\"\n  params: Array [\n    Node \"Identifier\" (1:11, 1:18)\n      name: \"b\"\n      typeAnnotation: Node \"TypeAnnotation\" (1:12, 1:18)\n          typeAnnotation: Node \"StringLiteralTypeAnnotation\" (1:14, 1:18)\n              extra: Object {\n                  \"raw\": \"\\\"hi\\\"\",\n                  \"rawValue\": \"hi\",\n                }\n             value: \"hi\",\n    Node \"Identifier\" (1:20, 1:21)\n      name: \"c\",\n    Node \"RestElement\" (1:23, 1:27)\n      argument: Node \"Identifier\" (1:26, 1:27)\n        name: \"d\",\n  ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel-utils%2Fast-pretty-print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabel-utils%2Fast-pretty-print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel-utils%2Fast-pretty-print/lists"}