{"id":13634568,"url":"https://github.com/bernard-lin/babel-plugin-glamorous-displayname","last_synced_at":"2026-04-02T18:41:39.741Z","repository":{"id":66052621,"uuid":"87890286","full_name":"bernard-lin/babel-plugin-glamorous-displayname","owner":"bernard-lin","description":"A babel plugin for Glamorous displayNames 💄","archived":false,"fork":false,"pushed_at":"2018-01-31T05:15:00.000Z","size":71,"stargazers_count":31,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T22:42:20.386Z","etag":null,"topics":["babel","babel-plugin","glamorous"],"latest_commit_sha":null,"homepage":"http://npm.im/babel-plugin-glamorous-displayname","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/bernard-lin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-04-11T05:00:39.000Z","updated_at":"2024-10-10T16:36:42.000Z","dependencies_parsed_at":"2023-03-27T20:48:24.300Z","dependency_job_id":null,"html_url":"https://github.com/bernard-lin/babel-plugin-glamorous-displayname","commit_stats":{"total_commits":51,"total_committers":6,"mean_commits":8.5,"dds":0.4117647058823529,"last_synced_commit":"01875b5ad075c8d3d45fcd40cc791719e1ffc5f6"},"previous_names":["bernard-lin/babel-plugin-glamorous"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/bernard-lin/babel-plugin-glamorous-displayname","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernard-lin%2Fbabel-plugin-glamorous-displayname","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernard-lin%2Fbabel-plugin-glamorous-displayname/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernard-lin%2Fbabel-plugin-glamorous-displayname/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernard-lin%2Fbabel-plugin-glamorous-displayname/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bernard-lin","download_url":"https://codeload.github.com/bernard-lin/babel-plugin-glamorous-displayname/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernard-lin%2Fbabel-plugin-glamorous-displayname/sbom","scorecard":{"id":234389,"data":{"date":"2025-08-11","repo":{"name":"github.com/bernard-lin/babel-plugin-glamorous-displayname","commit":"01875b5ad075c8d3d45fcd40cc791719e1ffc5f6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T05:21:12.986Z","repository_id":66052621,"created_at":"2025-08-17T05:21:12.986Z","updated_at":"2025-08-17T05:21:12.986Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["babel","babel-plugin","glamorous"],"created_at":"2024-08-02T00:00:26.241Z","updated_at":"2026-04-02T18:41:39.722Z","avatar_url":"https://github.com/bernard-lin.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003ebabel-plugin-glamorous-displayname\u003c/h1\u003e\n\n\u003cp\u003eadd a displayName property to glamorous components\u003c/p\u003e\n\u003c/div\u003e\n\n\u003chr /\u003e\n\n[![Build Status][build-badge]][build]\n[![Code Coverage][coverage-badge]][coverage]\n[![version][version-badge]][package]\n[![downloads][downloads-badge]][npmcharts]\n[![MIT License][license-badge]][license]\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors)\n[![PRs Welcome][prs-badge]][prs]\n[![Code of Conduct][coc-badge]][coc]\n\n[![Watch on GitHub][github-watch-badge]][github-watch]\n[![Star on GitHub][github-star-badge]][github-star]\n[![Tweet][twitter-badge]][twitter]\n\n## The problem\n\nYou want to use glamorous, but you want to have a better experience with the\nDevTools (because you lose the automatic `displayName` magic that the react\nbabel preset gives you).\n\n## This solution\n\nAdds the `displayName` to glamorous components.\n\n**In**\n\n```js\nconst MyStyledButton = glamorous.button()\n```\n\n![Alt text](https://cloud.githubusercontent.com/assets/16327281/25269334/2617d1c4-264a-11e7-98aa-9b67c9c26ad6.png 'React DevTools')\n\n**Out**\n\n```js\nconst MyStyledButton = glamorous.button.withConfig({\n  displayName: 'MyStyledButton',\n})\n```\n\n![Alt text](https://cloud.githubusercontent.com/assets/16327281/25269284/f4c4791a-2649-11e7-8457-f367ea8fab59.png 'React DevTools')\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n* [Installation](#installation)\n* [Usage](#usage)\n  * [Via `.babelrc` (Recommended)](#via-babelrc-recommended)\n  * [Via CLI](#via-cli)\n  * [Via Node API](#via-node-api)\n* [Use with `babel-plugin-macros`](#use-with-babel-plugin-macros)\n* [Inspiration](#inspiration)\n* [Other Solutions](#other-solutions)\n* [Contributors](#contributors)\n* [LICENSE](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Installation\n\nThis module is distributed via [npm][npm] which is bundled with [node][node] and\nshould be installed as one of your project's `devDependencies`:\n\n```\nnpm install --save-dev babel-plugin-glamorous-displayname\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"glamorous-displayname\"]\n}\n```\n\n### Via CLI\n\n```sh\n$ babel --plugins glamorous-displayname script.js\n```\n\n### Via Node API\n\n```javascript\nrequire('babel').transform('code', {\n  plugins: ['glamorous-displayname'],\n})\n```\n\n## Use with `babel-plugin-macros`\n\nOnce you've [configured `babel-plugin-macros`](https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md)\nyou can import/require the `glamorous` macro at `babel-plugin-glamorous/macro`.\nFor example:\n\n```javascript\nimport glamorous from 'babel-plugin-glamorous-displayname/macro'\n\nconst MyStyledInput = glamorous.input({\n  /* your styles */\n})\n```\n\n\u003e You could also use [`glamorous.macro`][glamorous.macro] if you'd prefer to type less 😀\n\n## Inspiration\n\n* [styled-components](https://github.com/styled-components/babel-plugin-styled-components)\n\n## Other Solutions\n\nI'm not aware of any, if you are please [make a pull request][prs] and add it\nhere!\n\n## Contributors\n\nThanks goes to these people ([emoji key][emojis]):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\n\u003c!-- prettier-ignore --\u003e\n| [\u003cimg src=\"https://avatars0.githubusercontent.com/u/16327281?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBernard Lin\u003c/b\u003e\u003c/sub\u003e](https://github.com/bernard-lin)\u003cbr /\u003e[💻](https://github.com/bernard-lin/babel-plugin-glamorous-displayname/commits?author=bernard-lin \"Code\") [📖](https://github.com/bernard-lin/babel-plugin-glamorous-displayname/commits?author=bernard-lin \"Documentation\") [⚠️](https://github.com/bernard-lin/babel-plugin-glamorous-displayname/commits?author=bernard-lin \"Tests\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/1500684?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKent C. Dodds\u003c/b\u003e\u003c/sub\u003e](https://kentcdodds.com)\u003cbr /\u003e[🐛](https://github.com/bernard-lin/babel-plugin-glamorous-displayname/issues?q=author%3Akentcdodds \"Bug reports\") [💻](https://github.com/bernard-lin/babel-plugin-glamorous-displayname/commits?author=kentcdodds \"Code\") [📖](https://github.com/bernard-lin/babel-plugin-glamorous-displayname/commits?author=kentcdodds \"Documentation\") [🤔](#ideas-kentcdodds \"Ideas, Planning, \u0026 Feedback\") [🚇](#infra-kentcdodds \"Infrastructure (Hosting, Build-Tools, etc)\") [📢](#talk-kentcdodds \"Talks\") [⚠️](https://github.com/bernard-lin/babel-plugin-glamorous-displayname/commits?author=kentcdodds \"Tests\") |\n| :---: | :---: |\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors][all-contributors] specification.\nContributions of any kind welcome!\n\n## LICENSE\n\nMIT\n\n[npm]: https://www.npmjs.com/\n[node]: https://nodejs.org\n[build-badge]: https://img.shields.io/travis/bernard-lin/babel-plugin-glamorous-displayname.svg?style=flat-square\n[build]: https://travis-ci.org/bernard-lin/babel-plugin-glamorous-displayname\n[coverage-badge]: https://img.shields.io/codecov/c/github/bernard-lin/babel-plugin-glamorous-displayname.svg?style=flat-square\n[coverage]: https://codecov.io/github/bernard-lin/babel-plugin-glamorous-displayname\n[version-badge]: https://img.shields.io/npm/v/babel-plugin-glamorous-displayname.svg?style=flat-square\n[package]: https://www.npmjs.com/package/babel-plugin-glamorous-displayname\n[downloads-badge]: https://img.shields.io/npm/dm/babel-plugin-glamorous-displayname.svg?style=flat-square\n[npmcharts]: http://npmcharts.com/compare/babel-plugin-glamorous-displayname\n[license-badge]: https://img.shields.io/npm/l/babel-plugin-glamorous-displayname.svg?style=flat-square\n[license]: https://github.com/bernard-lin/babel-plugin-glamorous-displayname/blob/master/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square\n[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]: https://github.com/bernard-lin/babel-plugin-glamorous-displayname/blob/master/other/CODE_OF_CONDUCT.md\n[github-watch-badge]: https://img.shields.io/github/watchers/bernard-lin/babel-plugin-glamorous-displayname.svg?style=social\n[github-watch]: https://github.com/bernard-lin/babel-plugin-glamorous-displayname/watchers\n[github-star-badge]: https://img.shields.io/github/stars/bernard-lin/babel-plugin-glamorous-displayname.svg?style=social\n[github-star]: https://github.com/bernard-lin/babel-plugin-glamorous-displayname/stargazers\n[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20babel-plugin-glamorous-displayname!%20https://github.com/bernard-lin/babel-plugin-glamorous-displayname%20%F0%9F%91%8D\n[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/bernard-lin/babel-plugin-glamorous-displayname.svg?style=social\n[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key\n[all-contributors]: https://github.com/kentcdodds/all-contributors\n[glamorous.macro]: https://www.npmjs.com/package/glamorous.macro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernard-lin%2Fbabel-plugin-glamorous-displayname","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernard-lin%2Fbabel-plugin-glamorous-displayname","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernard-lin%2Fbabel-plugin-glamorous-displayname/lists"}