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

Function writeConfig

frontend/addNodeConfig.js:54–57  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

52};
53// Write the updated config file
54var writeConfig = function (config) {
55 var data = "// nodeConfig.js\n\nconst nodeConfigInit = ".concat(JSON.stringify(config, null, 2), ";\n\nexport default nodeConfigInit;\n");
56 fs.writeFileSync(configPath, data, "utf-8");
57};
58// Prompt user for input
59var promptUser = function () { return __awaiter(void 0, void 0, void 0, function () {
60 var _a, key, label, api, method, category, description, doc, icon, inputs, addInputs, input, addMore;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected