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

Function ensureWriteJson

scripts/build.js:99–101  ·  view source on GitHub ↗
(file, json)

Source from the content-addressed store, hash-verified

97}
98
99async function ensureWriteJson(file, json) {
100 await ensureWrite(file, JSON.stringify(json, null, 2) + '\n')
101}
102
103async function buildIcons(package, style, format) {
104 let outDir = `./${package}/${style}`

Callers 1

mainFunction · 0.85

Calls 1

ensureWriteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…