mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-22 18:30:09 +00:00
15 lines
402 B
JavaScript
15 lines
402 B
JavaScript
const fs = require('fs');
|
|
|
|
// download from https://fonts.google.com/metadata/icons
|
|
const SRC = __dirname + '/../json.txt';
|
|
const OUT = __dirname + '/../icon-names.json';
|
|
|
|
const ic = fs.readFileSync(SRC, { encoding: 'utf8' });
|
|
|
|
const icons = JSON.parse(ic).icons;
|
|
const iconNames = icons.map((icon) => icon.name);
|
|
|
|
fs.writeFileSync(OUT, JSON.stringify(iconNames), {
|
|
overwrite: true,
|
|
flag: 'w',
|
|
});
|