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

Function ensureWrite

scripts/build.js:94–97  ·  view source on GitHub ↗
(file, text)

Source from the content-addressed store, hash-verified

92}
93
94async function ensureWrite(file, text) {
95 await fs.mkdir(dirname(file), { recursive: true })
96 await fs.writeFile(file, text, 'utf8')
97}
98
99async function ensureWriteJson(file, json) {
100 await ensureWrite(file, JSON.stringify(json, null, 2) + '\n')

Callers 2

ensureWriteJsonFunction · 0.85
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…