mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-16 10:24:12 +03:00
16 lines
425 B
JavaScript
16 lines
425 B
JavaScript
import { getIconsData, getIconSlug, slugToVariableName } from '../sdk.mjs';
|
|
import * as simpleIcons from '../index.mjs';
|
|
import { testIcon } from './test-icon.js';
|
|
|
|
(async () => {
|
|
const icons = await getIconsData();
|
|
|
|
icons.map((icon) => {
|
|
const slug = getIconSlug(icon);
|
|
const variableName = slugToVariableName(slug);
|
|
const subject = simpleIcons[variableName];
|
|
|
|
testIcon(icon, subject, slug);
|
|
});
|
|
})();
|