2023-04-19 16:23:13 +03:00
|
|
|
import { getIconsData, getIconSlug, slugToVariableName } from '../sdk.mjs';
|
2022-11-28 14:32:57 +03:00
|
|
|
import * as simpleIcons from '../index.mjs';
|
|
|
|
import { testIcon } from './test-icon.js';
|
2021-11-06 18:03:37 +03:00
|
|
|
|
2021-12-25 17:22:56 +03:00
|
|
|
(async () => {
|
|
|
|
const icons = await getIconsData();
|
2019-07-14 22:05:38 +03:00
|
|
|
|
2022-11-28 14:32:57 +03:00
|
|
|
icons.map((icon) => {
|
2021-12-25 17:22:56 +03:00
|
|
|
const slug = getIconSlug(icon);
|
2022-11-28 14:32:57 +03:00
|
|
|
const variableName = slugToVariableName(slug);
|
|
|
|
const subject = simpleIcons[variableName];
|
2021-12-25 17:22:56 +03:00
|
|
|
|
2022-11-28 14:32:57 +03:00
|
|
|
testIcon(icon, subject, slug);
|
2021-05-28 13:16:50 +03:00
|
|
|
});
|
2021-12-25 17:22:56 +03:00
|
|
|
})();
|