MCPcopy
hub / github.com/lingodotdev/lingo.dev / getRc

Function getRc

packages/compiler/src/utils/rc.ts:6–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import Ini from "ini";
5
6export function getRc() {
7 const settingsFile = ".lingodotdevrc";
8 const homedir = os.homedir();
9 const settingsFilePath = path.join(homedir, settingsFile);
10 const content = fs.existsSync(settingsFilePath)
11 ? fs.readFileSync(settingsFilePath, "utf-8")
12 : "";
13 const data = Ini.parse(content);
14 return data;
15}

Callers 3

tryGetEmailFunction · 0.90
getKeyFromRcFunction · 0.90
rc.spec.tsFile · 0.90

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected