{"id":17350305,"url":"https://github.com/buehler/node-typescript-parser","last_synced_at":"2025-04-08T04:19:35.672Z","repository":{"id":49739588,"uuid":"94973146","full_name":"buehler/node-typescript-parser","owner":"buehler","description":"Parser for typescript (and javascript) files, that compiles those files and generates a human understandable AST.","archived":false,"fork":false,"pushed_at":"2024-04-15T10:04:44.000Z","size":633,"stargazers_count":141,"open_issues_count":23,"forks_count":46,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-11T21:20:54.987Z","etag":null,"topics":["ast","ecmascript","parser","parsing","typescript","typescript-parser"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"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/buehler.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-21T06:57:48.000Z","updated_at":"2024-06-18T13:32:26.628Z","dependencies_parsed_at":"2024-06-18T13:32:24.353Z","dependency_job_id":"4e25266e-3743-4ba0-bc55-10ea214499cf","html_url":"https://github.com/buehler/node-typescript-parser","commit_stats":null,"previous_names":["typescript-heroes/node-typescript-parser"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buehler%2Fnode-typescript-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buehler%2Fnode-typescript-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buehler%2Fnode-typescript-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buehler%2Fnode-typescript-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buehler","download_url":"https://codeload.github.com/buehler/node-typescript-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773739,"owners_count":20993640,"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":["ast","ecmascript","parser","parsing","typescript","typescript-parser"],"created_at":"2024-10-15T17:06:26.764Z","updated_at":"2025-04-08T04:19:35.654Z","avatar_url":"https://github.com/buehler.png","language":"TypeScript","readme":"# node typescript parser\n\nThis package is a TypeScript and ECMAScript parser. It uses the underlying typescript parser to generate\na more or less human readable AST out of .js or .ts files.\n\n[![Build Status](https://travis-ci.org/buehler/node-typescript-parser.svg)](https://travis-ci.org/buehler/node-typescript-parser)\n[![Build Status Windows](https://ci.appveyor.com/api/projects/status/j06bqjc4tkdt7sej?svg=true)](https://ci.appveyor.com/project/buehler/node-typescript-parser)\n[![npm](https://img.shields.io/npm/v/typescript-parser.svg?maxAge=3600)](https://www.npmjs.com/package/typescript-parser)\n[![codecov](https://codecov.io/gh/buehler/node-typescript-parser/branch/master/graph/badge.svg)](https://codecov.io/gh/buehler/node-typescript-parser)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Greenkeeper badge](https://badges.greenkeeper.io/buehler/node-typescript-parser.svg)](https://greenkeeper.io/)\n[![Gitter](https://img.shields.io/gitter/room/node-typescript-parser/Lobby.svg)](https://gitter.im/node-typescript-parser/Lobby)\n\n## How to use\n\nAfter you install the package via:\n\n[![NPM](https://nodei.co/npm/typescript-parser.png?downloads=true\u0026stars=true)](https://nodei.co/npm/typescript-parser/)\n\n### [View Source Docs](https://buehler.github.io/node-typescript-parser/)\n\nYou can use the parser with:\n\n```typescript\nconst parser = new TypescriptParser();\n\n// either:\nconst parsed = await parser.parseSource(/* typescript source code as string */);\n\n// or a filepath\nconst parsed = await parser.parseFile('/user/myfile.ts', 'workspace root');\n```\n\nYou can also parse multiple files at ones.\n\nTo use the declaration index (which is basically a list of symbols for your files)\ninstantiate an index first and throw him some files.\n\nAfter the parsing is done, you'll get an index with resolved\nexports and declarations.\n\nKeep in mind, that the index'll only contain exported declarations.\n\n## Changelog\n\nThe changelog is generated by [semantic release](https://github.com/semantic-release/semantic-release) and is located under the\n[release section](https://github.com/buehler/node-typescript-parser/releases).\n\n## Licence\n\nThis software is licenced under the [MIT](LICENSE) licence.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuehler%2Fnode-typescript-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuehler%2Fnode-typescript-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuehler%2Fnode-typescript-parser/lists"}