{"id":21179585,"url":"https://github.com/puntorigen/ruby_parser","last_synced_at":"2025-07-09T23:31:41.423Z","repository":{"id":57824330,"uuid":"528247725","full_name":"puntorigen/ruby_parser","owner":"puntorigen","description":"Pure JS Ruby file parser","archived":false,"fork":false,"pushed_at":"2022-11-02T22:56:42.000Z","size":197,"stargazers_count":6,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T05:07:58.042Z","etag":null,"topics":["ast","info","parser","ruby"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/puntorigen.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}},"created_at":"2022-08-24T03:14:58.000Z","updated_at":"2023-04-07T21:07:25.000Z","dependencies_parsed_at":"2023-01-21T12:47:58.076Z","dependency_job_id":null,"html_url":"https://github.com/puntorigen/ruby_parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/puntorigen/ruby_parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puntorigen%2Fruby_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puntorigen%2Fruby_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puntorigen%2Fruby_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puntorigen%2Fruby_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puntorigen","download_url":"https://codeload.github.com/puntorigen/ruby_parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puntorigen%2Fruby_parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505236,"owners_count":23618909,"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","info","parser","ruby"],"created_at":"2024-11-20T17:32:25.235Z","updated_at":"2025-07-09T23:31:41.050Z","avatar_url":"https://github.com/puntorigen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS Ruby file parser\nSimple class for parsing ruby files, getting their methods, arguments, comments and AST.\n\n```js\nconst ruby = require('ruby_parser');\nconst parserObj = new ruby();\n\nconst parsed = parserObj.parse({\n    filePath: 'tests/test.rb',\n    // rubyString: `i = 7` // you can use filePath or rubyString\n});\n\nconst info = parserObj.getInfo();\nconst methods = parserObj.getMethods();\nconst comments = parserObj.getComments();\nconst ast = parserObj.getAst(); // also, parserObj.parse method returns the ast\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuntorigen%2Fruby_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuntorigen%2Fruby_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuntorigen%2Fruby_parser/lists"}