MCPcopy Create free account
hub / github.com/MiloOweno/vector-mesh / writeContent

Function writeContent

scripts/updateBlockExplorerPluginChains.ts:72–77  ·  view source on GitHub ↗
(pluginPath: string, content: string)

Source from the content-addressed store, hash-verified

70console.log(`Done. Updated chains for ${count} plugins.`)
71
72async function writeContent(pluginPath: string, content: string) {
73 const text = await fs
74 .readFile(pluginPath, 'utf8')
75 .then((text) => text.replace(/type ChainId =[\s\S]*$/, content))
76 await fs.writeFile(pluginPath, text, 'utf8')
77}

Calls

no outgoing calls

Tested by

no test coverage detected