All Projects → skovy → font-awesome-codemod

skovy / font-awesome-codemod

Licence: other
⚙️ Font Awesome codemod script

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to font-awesome-codemod

tiny-treeshaker
🌳🥤 A tiny codemod for tree shaking (experimental) 🌳🥤
Stars: ✭ 92 (+100%)
Mutual labels:  codemod, jscodeshift
preact-codemod
🍧 Shave some bytes by using Preact.
Stars: ✭ 39 (-15.22%)
Mutual labels:  codemod, jscodeshift
es5-function-to-class-codemod
📦 Transform ES5 Functions to ES6 Classes
Stars: ✭ 30 (-34.78%)
Mutual labels:  codemod, jscodeshift
codemod-v4
codemod cli for antd v4 upgrade
Stars: ✭ 84 (+82.61%)
Mutual labels:  codemod, jscodeshift
ember-angle-brackets-codemod
Codemod to convert curly braces syntax to angle brackets syntax
Stars: ✭ 58 (+26.09%)
Mutual labels:  codemod, jscodeshift
async-await-codemod
Codemod script for migrating promise-based functions to use async/await syntax
Stars: ✭ 22 (-52.17%)
Mutual labels:  codemod, jscodeshift
jscodeshift-typescript-example
jscodeshift typescript codemod example
Stars: ✭ 27 (-41.3%)
Mutual labels:  codemod, jscodeshift
vue-fa
Tiny FontAwesome 5 component for Vue.js.
Stars: ✭ 24 (-47.83%)
Mutual labels:  font-awesome
iconplus
Produce icons with extra effect like long shadow, flat shadow, box effect, circle effect and rounded rectangle effect. It support Dynamic text, Font-awesome icons and also google materialized icon. You can make any Font-awesome icon as line icon and add attractive effect to it dynamically. As a output you will get CSS3 code and also you can expo…
Stars: ✭ 34 (-26.09%)
Mutual labels:  font-awesome
svelte-fa
Tiny FontAwesome 5 component for Svelte
Stars: ✭ 214 (+365.22%)
Mutual labels:  font-awesome
sakura
🌸 A Jekyll theme with baked in Bootstrap 4, Font Awesome 5, Algolia instant search, and more!
Stars: ✭ 31 (-32.61%)
Mutual labels:  font-awesome
nerd-font-cheatsheets
Generated list of Nerd Font to simplify finding characters that look good in text editors and terminal prompt
Stars: ✭ 74 (+60.87%)
Mutual labels:  font-awesome
FMX.FontAwesome
[FireMonkey] FontAwesome
Stars: ✭ 21 (-54.35%)
Mutual labels:  font-awesome
happy-birthday
🎂 Responsive Birthday Card - Made with Jquery and CSS
Stars: ✭ 85 (+84.78%)
Mutual labels:  font-awesome
ng2-multi-step-wizard-ui-router1
Series 3: Tutorials on creating an Angular 2 Multi-Step Wizard using UI-Router 1.0 and TypeScript 2.0.10
Stars: ✭ 33 (-28.26%)
Mutual labels:  font-awesome
fate
Browse FontAawesome icons from your shell
Stars: ✭ 26 (-43.48%)
Mutual labels:  font-awesome
ruby3-rails6-bootstrap-heroku
An opinionated starter application based on Ruby 3.0, Rails 6.1, Webpack 5, Yarn, and Bootstrap 5, deployable on Heroku
Stars: ✭ 21 (-54.35%)
Mutual labels:  font-awesome
plumage
🎨 Theme for Pelican, the static site generator.
Stars: ✭ 50 (+8.7%)
Mutual labels:  font-awesome
ukFontAwesome
Font Awesome icons for UIkit 3
Stars: ✭ 29 (-36.96%)
Mutual labels:  font-awesome
rn-update-deprecated-modules
Codemod to update import declarations as per react-native > 0.59.x deprecations.
Stars: ✭ 73 (+58.7%)
Mutual labels:  codemod

font-awesome-codemod Build Status

This repository contains a codemod script to use with jscodeshift.

🛠️ Setup & Run

# Globally install (or consider using npx)
yarn global add jscodeshift

# Clone the transform (or try https://github.com/skovy/font-awesome-codemod)
git clone [email protected]:skovy/font-awesome-codemod.git

# Install the transform's dependencies
cd font-awesome-codemod
yarn install
cd ..

# Run the transform against your project
jscodeshift -t font-awesome-codemod/transforms/implicit-icons-to-explicit-imports.ts <file>

Use 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 if not using vanilla JavaScript.

⚙️ Options:

All options have a default but can be set with the following options:

--componentName:

Type: string

Default: FontAwesomeIcon

Example: --componentName=Icon

The name of the component to update the icon usage

--propName

Type: string

Default: icon

Example: --propName=iconProp

The name of the prop on the component to update the icon usage.

--type

Type: "free" | "pro"

Default: free

Example: --type=pro

The type of packages (imports) to replace the icons usages.

🔍 Example

➡️ Input

import * as React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

const Component = () => {
  return <FontAwesomeIcon icon="minus-circle" />;
};

⬅️ Output

import * as React from "react";
import { faMinusCircle } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

const Component = () => {
  return <FontAwesomeIcon icon={faMinusCircle} />;
};
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].