MCPcopy Create free account
hub / github.com/Autoanys/Autoanys / writeConfig

Function writeConfig

frontend/addNodeConfig.ts:45–48  ·  view source on GitHub ↗
(config: NodeConfigInit)

Source from the content-addressed store, hash-verified

43
44// Write the updated config file
45const writeConfig = (config: NodeConfigInit): void => {
46 const data = `// nodeConfig.js\n\nconst nodeConfigInit = ${JSON.stringify(config, null, 2)};\n\nexport default nodeConfigInit;\n`;
47 fs.writeFileSync(configPath, data, "utf-8");
48};
49
50// Prompt user for input
51const promptUser = async (): Promise<{ key: string; node: NodeConfig }> => {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected