{"id":16618893,"url":"https://github.com/motiz88/babel-plugin-class-properties-7to6","last_synced_at":"2025-06-19T07:06:29.321Z","repository":{"id":79369074,"uuid":"38863204","full_name":"motiz88/babel-plugin-class-properties-7to6","owner":"motiz88","description":"es7.classProperties without es6.classes","archived":false,"fork":false,"pushed_at":"2017-04-02T07:44:33.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T20:14:13.805Z","etag":null,"topics":["babel-plugin","deprecated"],"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/motiz88.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":"2015-07-10T05:44:16.000Z","updated_at":"2017-04-02T10:25:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"b16b9a1f-b064-4381-bbbe-9ca818e70a5f","html_url":"https://github.com/motiz88/babel-plugin-class-properties-7to6","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"e30a946935e563fe872fe6badae8948dd3bc2132"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/motiz88/babel-plugin-class-properties-7to6","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motiz88%2Fbabel-plugin-class-properties-7to6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motiz88%2Fbabel-plugin-class-properties-7to6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motiz88%2Fbabel-plugin-class-properties-7to6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motiz88%2Fbabel-plugin-class-properties-7to6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/motiz88","download_url":"https://codeload.github.com/motiz88/babel-plugin-class-properties-7to6/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motiz88%2Fbabel-plugin-class-properties-7to6/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260705849,"owners_count":23049492,"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-plugin","deprecated"],"created_at":"2024-10-12T02:21:59.211Z","updated_at":"2025-06-19T07:06:24.277Z","avatar_url":"https://github.com/motiz88.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-class-properties-7to6\n\n[es7.classProperties](https://gist.github.com/jeffmo/054df782c05639da2adb) without [es6.classes](https://babeljs.io/docs/learn-es2015/#classes).\n\n**Note**: This plugin doesn't actually transform properties correctly at the moment. Instead, it just _removes_ class properties wherever they're encountered. This obviously breaks the code in the general case, but can still be helpful to apply before some tools (e.g. [JSDoc](https://github.com/jsdoc3/jsdoc)) that rely on pre-ES7 parsers.\n\nThe current behavior is enough for my needs. Of course, PRs reimplementing the required bits of [es6.classes](https://github.com/babel/babel/tree/master/src/babel/transformation/transformers/es6/classes) while still emitting valid ES6 are very welcome.\n\n## Installation\n\n```sh\n$ npm install babel-plugin-class-properties-7to6\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"class-properties-7to6\"]\n}\n```\n\n### Via CLI\n\n```sh\n$ babel --plugins class-properties-7to6 script.js\n```\n\n### Via Node API\n\n```javascript\nrequire('babel').transform('code', {\n  plugins: ['class-properties-7to6']\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotiz88%2Fbabel-plugin-class-properties-7to6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmotiz88%2Fbabel-plugin-class-properties-7to6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotiz88%2Fbabel-plugin-class-properties-7to6/lists"}