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

Function getConfig

packages/leetcode-cli/src/utils.js:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32const configPath = path.join(homedir, '.crd-leetcode.json')
33const getConfig = () => {
34 try {
35 const config = JSON.parse(fs.readFileSync(configPath))
36 return config
37 } catch (error) {
38 return {
39 country: undefined,
40 cookies: undefined,
41 }
42 }
43}
44const stringify = data => JSON.stringify(data, null, 2)
45
46const setConfig = (payload = {}) => {

Callers 4

setConfigFunction · 0.85
removeConfigFunction · 0.85
leetcode.jsFile · 0.85
getCookieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected