mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-19 08:02:16 +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);
|
|
};
|