MCPcopy Create free account
hub / github.com/MuYunyun/create-react-doc / setConfig

Function setConfig

packages/leetcode-cli/src/utils.js:46–52  ·  view source on GitHub ↗
(payload = {})

Source from the content-addressed store, hash-verified

44const stringify = data => JSON.stringify(data, null, 2)
45
46const setConfig = (payload = {}) => {
47 const config = {
48 ...getConfig(),
49 ...payload,
50 }
51 fs.writeFileSync(configPath, stringify(config))
52}
53
54const removeConfig = (key) => {
55 const config = getConfig()

Callers 1

loginFunction · 0.85

Calls 2

getConfigFunction · 0.85
stringifyFunction · 0.85

Tested by

no test coverage detected