react-icons-extractor
v1.2.3
Published
React Icon Optimizer allows you to reduce the build size by deleting unused icons in the React Icons library used in React projects.
Downloads
19
Maintainers
Readme
React Icon Extractor
This script extracts all used icons in a React project and saves them as SVG files in a specified directory.
Installation
To use this script, you need to install the required packages:
npm install react-icons-extractor or yarn add react-icons-extractorUsage
Run command for npx
npx react-icons-extractorIcons
This script only supports icons from the following icon families:
Icon Library|License|Version|Count ---|---|---|--- Font Awesome|CC BY 4.0 License|5.15.4 7d3d774145ac38663f6d1effc6def0334b68ab7e|1612 Ionicons 4|MIT|4.6.3|696 Ionicons 5|MIT|5.5.0|1332 Material Design icons|Apache License Version 2.0|4.0.0-12-g63c5cb3060 63c5cb306073a9ecdfd3579f0f696746ab6305f6|3650 Typicons|CC BY-SA 3.0|2.1.2|336 Github Octicons icons|MIT|8.5.0|184 Feather|MIT|4.28.0|286 Game Icons|CC BY 3.0|12920d6565588f0512542a3cb0cdfd36a497f910|4040 Weather Icons|SIL OFL 1.1|2.0.12|219 Devicons|MIT|1.8.0|192 Ant Design Icons|MIT|4.2.1|789 Bootstrap Icons|MIT|1.5.0|1846 Remix Icon|Apache License Version 2.0|2.5.0|2271 Flat Color Icons|MIT|1.0.2|329 Grommet-Icons|Apache License Version 2.0|4.6.2|615 Heroicons|MIT|1.0.4|460 Heroicons 2|MIT|2.0.8|530 Simple Icons|CC0 1.0 Universal|5.16.0|2024 IcoMoon Free|CC BY 4.0 License|d006795ede82361e1bac1ee76f215cf1dc51e4ca|491 BoxIcons|CC BY 4.0 License|2.0.9|757 css.gg|MIT|2.0.0|704 VS Code Icons|CC BY 4.0|0.0.23|383 Tabler Icons|MIT|1.68.0|1978
License
This script is licensed under the MIT License.
Library Used
This script uses the React Icons library.
