{"id":16536434,"url":"https://github.com/laiff/babel-plugin-react-wrapped-display-name","last_synced_at":"2025-03-21T09:32:15.801Z","repository":{"id":37820209,"uuid":"200042109","full_name":"Laiff/babel-plugin-react-wrapped-display-name","owner":"Laiff","description":"Add display name to memoized components","archived":false,"fork":false,"pushed_at":"2023-01-04T05:59:51.000Z","size":835,"stargazers_count":2,"open_issues_count":18,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T05:11:14.064Z","etag":null,"topics":["babel","babel-plugin","display-name","memo","react"],"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/Laiff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-01T11:57:46.000Z","updated_at":"2021-08-06T23:52:11.000Z","dependencies_parsed_at":"2023-02-02T00:16:04.952Z","dependency_job_id":null,"html_url":"https://github.com/Laiff/babel-plugin-react-wrapped-display-name","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laiff%2Fbabel-plugin-react-wrapped-display-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laiff%2Fbabel-plugin-react-wrapped-display-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laiff%2Fbabel-plugin-react-wrapped-display-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laiff%2Fbabel-plugin-react-wrapped-display-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Laiff","download_url":"https://codeload.github.com/Laiff/babel-plugin-react-wrapped-display-name/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244130282,"owners_count":20402753,"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-plugin","display-name","memo","react"],"created_at":"2024-10-11T18:31:24.125Z","updated_at":"2025-03-21T09:32:15.492Z","avatar_url":"https://github.com/Laiff.png","language":"JavaScript","readme":"# babel-plugin-react-wrapped-display-name\n\n\u003e \n\n[![npm version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![codecov][codecov-image]][codecov-url]\n\nSolve problem with unnamed component, which created with arrow function.\n\n## Example\n\n### In\n\n```jsx harmony\n\nexport const FancyComponentName = memo(\n  ({ name }) =\u003e \u003cdiv\u003e{name}\u003c/div\u003e);\n\n```\n\n### Out\n\n```jsx harmony\nexport const FancyComponentName = memo(\n  ({ name }) =\u003e \u003cdiv\u003e{name}\u003c/div\u003e);\n\nFancyComponentName.displayName = \"Memo(FancyComponentName)\";\n```\n\n## Installation\n\n```sh\nnpm install @babel/core babel-plugin-react-wrapped-display-name\n```\n\n## Usage\n\n### Via `babel.config.js` (Recommended)\n\n```js\nmodule.exports = (api) =\u003e ({\n  plugins: [\n    'babel-plugin-react-wrapped-display-name',\n  ],\n});\n```\n\n### Via CLI\n\n```sh\nbabel --plugins babel-plugin-react-wrapped-display-name\n```\n\n### Via Node API\n\n```js\nrequire('@babel/core').transform(code, {\n  plugins: [\n    'babel-plugin-react-wrapped-display-name',\n  ],\n});\n```\n\n## Options\n\n[codecov-image]: https://codecov.io/gh/laiff/babel-plugin-react-wrapped-display-name/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/laiff/babel-plugin-react-wrapped-display-name\n[npm-image]: https://img.shields.io/npm/v/babel-plugin-react-wrapped-display-name.svg\n[npm-url]: https://www.npmjs.com/package/babel-plugin-react-wrapped-display-name\n[travis-image]: https://img.shields.io/travis/laiff/babel-plugin-react-wrapped-display-name.svg\n[travis-url]: https://travis-ci.org/laiff/babel-plugin-react-wrapped-display-name\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaiff%2Fbabel-plugin-react-wrapped-display-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaiff%2Fbabel-plugin-react-wrapped-display-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaiff%2Fbabel-plugin-react-wrapped-display-name/lists"}