(style)
| 67 | } |
| 68 | |
| 69 | async function getIcons(style) { |
| 70 | let files = await fs.readdir(`./optimized/${style}`) |
| 71 | return Promise.all( |
| 72 | files.map(async (file) => ({ |
| 73 | svg: await fs.readFile(`./optimized/${style}/${file}`, 'utf8'), |
| 74 | componentName: `${camelcase(file.replace(/\.svg$/, ''), { |
| 75 | pascalCase: true, |
| 76 | })}Icon`, |
| 77 | isDeprecated: deprecated.includes(file), |
| 78 | })) |
| 79 | ) |
| 80 | } |
| 81 | |
| 82 | function exportAll(icons, format, includeExtension = true) { |
| 83 | return icons |
no outgoing calls
no test coverage detected
searching dependent graphs…