{"id":15713222,"url":"https://github.com/timothygu/babel-plugin-parser-opts","last_synced_at":"2026-07-02T05:32:27.043Z","repository":{"id":66192431,"uuid":"67317593","full_name":"TimothyGu/babel-plugin-parser-opts","owner":"TimothyGu","description":"Pass arbitrary Babylon parser options to Babel","archived":false,"fork":false,"pushed_at":"2016-10-01T16:16:32.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T02:17:47.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/TimothyGu.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-09-04T00:18:00.000Z","updated_at":"2016-09-04T00:19:08.000Z","dependencies_parsed_at":"2023-02-25T06:45:55.948Z","dependency_job_id":null,"html_url":"https://github.com/TimothyGu/babel-plugin-parser-opts","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TimothyGu/babel-plugin-parser-opts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyGu%2Fbabel-plugin-parser-opts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyGu%2Fbabel-plugin-parser-opts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyGu%2Fbabel-plugin-parser-opts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyGu%2Fbabel-plugin-parser-opts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimothyGu","download_url":"https://codeload.github.com/TimothyGu/babel-plugin-parser-opts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyGu%2Fbabel-plugin-parser-opts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269957408,"owners_count":24503374,"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-08-11T02:00:10.019Z","response_time":75,"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":[],"created_at":"2024-10-03T21:21:52.861Z","updated_at":"2026-07-02T05:32:27.033Z","avatar_url":"https://github.com/TimothyGu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deprecated\n\nThis module is deprecated. In Babel 6.16.0, an option `parserOpts` was added\nthat does [the exact same thing][babel blog].\n\n[babel blog]: https://babeljs.io/blog/2016/09/28/6.16.0#new-feature\n\n----\n\n# babel-plugin-parser-opts\n\nPass arbitrary Babylon parser options to Babel.\n\n[Babel] internally uses [Babylon] to parse JavaScript. However, it does\nnot expose all of Babylon's [options] to be changed by users. This plugin\nmakes it possible to change all of these options.\n\n[![Build Status](https://img.shields.io/travis/TimothyGu/babel-plugin-parser-opts.svg)](https://travis-ci.org/TimothyGu/babel-plugin-parser-opts)\n[![npm](https://img.shields.io/npm/v/babel-plugin-parser-opts.svg)](https://www.npmjs.com/package/babel-plugin-parser-opts)\n\n[Babel]: https://github.com/babel/babel\n[Babylon]: https://github.com/babel/babylon\n[options]: https://github.com/babel/babylon#options\n\n## Installation\n\n```sh\n$ npm install babel-plugin-parser-opts\n```\n\n## Usage\n\n### Via `.babelrc`\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\n    [ \"parser-opts\", { \"allowReturnOutsideFunction\": true } ]\n  ]\n}\n```\n\n### Via Node API\n\n```javascript\nrequire('babel-core').transform('code', {\n  plugins: [\n    [ 'parser-opts', { allowReturnOutsideFunction: true } ]\n  ]\n});\n```\n\n### Parser plugins\n\nAll provided options will overwrite existing options, with one exception:\n`plugins`. If provided, `plugins` array will be merged with existing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothygu%2Fbabel-plugin-parser-opts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimothygu%2Fbabel-plugin-parser-opts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothygu%2Fbabel-plugin-parser-opts/lists"}