MCPcopy Create free account
hub / github.com/unplugin/unplugin-auto-import / writeFile

Function writeFile

src/core/ctx.ts:185–188  ·  view source on GitHub ↗
(filePath: string, content = '')

Source from the content-addressed store, hash-verified

183 const writeConfigFilesThrottled = throttle(500, writeConfigFiles, { noLeading: false })
184
185 async function writeFile(filePath: string, content = '') {
186 await fs.mkdir(dirname(filePath), { recursive: true })
187 return await fs.writeFile(filePath, content, 'utf-8')
188 }
189
190 let lastDTS: string | undefined
191 let lastESLint: string | undefined

Callers 1

writeConfigFilesFunction · 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…