MCPcopy
hub / github.com/tailwindlabs/heroicons / getIcons

Function getIcons

scripts/build.js:69–80  ·  view source on GitHub ↗
(style)

Source from the content-addressed store, hash-verified

67}
68
69async 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
82function exportAll(icons, format, includeExtension = true) {
83 return icons

Callers 1

buildIconsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…