An open API service indexing awesome lists of open source software.

https://github.com/javierarce/wordpress-icon-extractor

Programmatically export all the SVG icons from @wordpress/icons.
https://github.com/javierarce/wordpress-icon-extractor

icons icons-pack wordpress wordpress-development

Last synced: 8 months ago
JSON representation

Programmatically export all the SVG icons from @wordpress/icons.

Awesome Lists containing this project

README

          

### How to use

1. Install dependencies with `yarn`.
2. Run `yarn start`.

If there's a new version of the npm package, the script will automatically
update the version in the `package.json` file and then download the new icons
into the `icons` folder. After that task, it will generate a sample grid file and
save it with the following name: `grid-{package-version}.svg`.

### What to do after running the script

Run `yarn compare ` to compare the icons between two versions.

https://github.com/user-attachments/assets/eb03431a-6bd7-460a-85c7-550b6a8956ac

### Configuration

By default the script will generate a grid with 16 icons per row and 16px size per icon. You can change these values in the script.

```JavaScript
const ICONS_PER_ROW = 16;
const ICON_SIZE = 24;
```