mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-21 09:11:29 +03:00
10 lines
355 B
JavaScript
10 lines
355 B
JavaScript
// Script to get all icon names from materialdesignicons.com
|
|
const getMdi = () => {
|
|
const icons = document.querySelectorAll('#icons div span');
|
|
const names = [...icons].map((icon) => icon.textContent.replace('mdi-', ''));
|
|
const output = names.map((name) => ({ name }));
|
|
output.pop();
|
|
const json = JSON.stringify(output);
|
|
console.log(json);
|
|
};
|