mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-01-10 20:21:11 +03:00
23 lines
480 B
JavaScript
23 lines
480 B
JavaScript
|
import {
|
||
|
getIconsData,
|
||
|
getIconSlug,
|
||
|
slugToVariableName,
|
||
|
} from '../scripts/utils.js';
|
||
|
import * as simpleIcons from '../icons.mjs';
|
||
|
import { testIcon } from './test-icon.js';
|
||
|
import { exec } from 'uvu';
|
||
|
|
||
|
(async () => {
|
||
|
const icons = await getIconsData();
|
||
|
|
||
|
icons.map((icon) => {
|
||
|
const slug = getIconSlug(icon);
|
||
|
const variableName = slugToVariableName(slug);
|
||
|
const subject = simpleIcons[variableName];
|
||
|
|
||
|
testIcon(icon, subject, slug);
|
||
|
});
|
||
|
|
||
|
exec();
|
||
|
})();
|