{"id":18653240,"url":"https://github.com/babel-utils/babylon-options","last_synced_at":"2025-04-11T16:32:16.911Z","repository":{"id":66094719,"uuid":"91518084","full_name":"babel-utils/babylon-options","owner":"babel-utils","description":"Simplified options for Babylon","archived":false,"fork":false,"pushed_at":"2018-02-28T20:22:19.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T04:32:26.253Z","etag":null,"topics":["babel","babel-util","babylon"],"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-17T00:54:42.000Z","updated_at":"2017-06-24T04:39:50.000Z","dependencies_parsed_at":"2023-03-05T15:30:44.996Z","dependency_job_id":null,"html_url":"https://github.com/babel-utils/babylon-options","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabylon-options","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabylon-options/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabylon-options/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabylon-options/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babel-utils","download_url":"https://codeload.github.com/babel-utils/babylon-options/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248441280,"owners_count":21103957,"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":["babel","babel-util","babylon"],"created_at":"2024-11-07T07:10:42.596Z","updated_at":"2025-04-11T16:32:16.901Z","avatar_url":"https://github.com/babel-utils.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babylon-options\n\n\u003e Simplified options for [Babylon](https://github.com/babel/babylon)\n\n**Before:**\n\n```js\nbabylon.parse(code, {\n  sourceType: 'module',\n  plugins: [\n    'jsx',\n    'flow',\n    'doExpressions',\n    'objectRestSpread',\n    'decorators',\n    'classProperties',\n    'exportExtensions',\n    'asyncGenerators',\n    'functionBind',\n    'functionSent',\n    'dynamicImport',\n  ],\n});\n```\n\n**After:**\n\n```js\nimport * as babylon from 'babylon';\nimport createBabylonOptions from 'babylon-options';\n\nbabylon.parse(code, createBabylonOptions({\n  stage: 2,\n  plugins: ['flow', 'jsx'],\n}));\n```\n\n## Options\n\nAll Babylon options will be passed through, will some additions/modifications:\n\n- `sourceType`: Defaults to \"module\"\n- `stage`: Set plugins based on TC39 stages\n- `plugins`: You can still specify plugins, other options will add to this list\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel-utils%2Fbabylon-options","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabel-utils%2Fbabylon-options","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel-utils%2Fbabylon-options/lists"}