{"id":14007147,"url":"https://github.com/skovy/font-awesome-codemod","last_synced_at":"2026-04-02T01:46:02.277Z","repository":{"id":42984159,"uuid":"213286703","full_name":"skovy/font-awesome-codemod","owner":"skovy","description":"⚙️ Font Awesome codemod script","archived":false,"fork":false,"pushed_at":"2022-12-04T15:03:24.000Z","size":353,"stargazers_count":48,"open_issues_count":8,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-04T17:01:48.714Z","etag":null,"topics":["codemod","font-awesome","jscodeshift","typescript"],"latest_commit_sha":null,"homepage":"https://skovy.dev/jscodeshift-custom-transform","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skovy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-07T03:23:50.000Z","updated_at":"2025-07-10T15:01:58.000Z","dependencies_parsed_at":"2023-01-23T01:15:08.491Z","dependency_job_id":null,"html_url":"https://github.com/skovy/font-awesome-codemod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skovy/font-awesome-codemod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skovy%2Ffont-awesome-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skovy%2Ffont-awesome-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skovy%2Ffont-awesome-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skovy%2Ffont-awesome-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skovy","download_url":"https://codeload.github.com/skovy/font-awesome-codemod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skovy%2Ffont-awesome-codemod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"ssl_error","status_checked_at":"2026-04-02T01:43:36.474Z","response_time":53,"last_error":"SSL_read: 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":["codemod","font-awesome","jscodeshift","typescript"],"created_at":"2024-08-10T10:01:51.683Z","updated_at":"2026-04-02T01:46:02.250Z","avatar_url":"https://github.com/skovy.png","language":"TypeScript","readme":"# font-awesome-codemod [![Build Status](https://travis-ci.org/skovy/font-awesome-codemod.svg?branch=master)](https://travis-ci.org/skovy/font-awesome-codemod)\n\nThis repository contains a codemod script to use with [jscodeshift](https://github.com/facebook/jscodeshift).\n\n## :hammer_and_wrench: Setup \u0026 Run\n\n```sh\n# Globally install (or consider using npx)\nyarn global add jscodeshift\n\n# Clone the transform (or try https://github.com/skovy/font-awesome-codemod)\ngit clone git@github.com:skovy/font-awesome-codemod.git\n\n# Install the transform's dependencies\ncd font-awesome-codemod\nyarn install\ncd ..\n\n# Run the transform against your project\njscodeshift -t font-awesome-codemod/transforms/implicit-icons-to-explicit-imports.ts \u003cfile\u003e\n```\n\nUse the `-d` option for a dry-run and use `-p` to print the output for comparison. Also be sure to set the proper `--parser` and `--extensions` [jscodeshift options](https://github.com/facebook/jscodeshift#usage-cli) if not using vanilla JavaScript.\n\n## :gear: Options:\n\nAll options have a default but can be set with the following options:\n\n### `--componentName`:\n\n**Type**: `string`\n\n**Default**: `FontAwesomeIcon`\n\n**Example**: `--componentName=Icon`\n\nThe name of the component to update the icon usage\n\n### `--propName`\n\n**Type**: `string`\n\n**Default**: `icon`\n\n**Example**: `--propName=iconProp`\n\nThe name of the prop on the component to update the icon usage.\n\n### `--type`\n\n**Type**: `\"free\" | \"pro\"`\n\n**Default**: `free`\n\n**Example**: `--type=pro`\n\nThe type of packages (imports) to replace the icons usages.\n\n## :mag: Example\n\n### :arrow_right: Input\n\n```tsx\nimport * as React from \"react\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\n\nconst Component = () =\u003e {\n  return \u003cFontAwesomeIcon icon=\"minus-circle\" /\u003e;\n};\n```\n\n### ️ :arrow_left: Output\n\n```tsx\nimport * as React from \"react\";\nimport { faMinusCircle } from \"@fortawesome/free-solid-svg-icons\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\n\nconst Component = () =\u003e {\n  return \u003cFontAwesomeIcon icon={faMinusCircle} /\u003e;\n};\n```\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskovy%2Ffont-awesome-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskovy%2Ffont-awesome-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskovy%2Ffont-awesome-codemod/lists"}