MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / getInputFilePath

Function getInputFilePath

js/botasaurus-server-js/src/paths.ts:75–92  ·  view source on GitHub ↗
(arg1: string)

Source from the content-addressed store, hash-verified

73}
74
75export function getInputFilePath(arg1: string): string {
76 if (isElectron) {
77 if (isElectronAndDev) {
78 if (isRunningInErbDll()) {
79 const inputFilePath = path.join(
80 __dirname,
81 "../",
82 "../",
83 "inputs",
84 `${arg1}.js`
85 );
86 return inputFilePath;
87 }
88 }
89 return path.join(__dirname, "inputs", `${arg1}.js`);
90 }
91 return path.join(process.cwd(), "inputs", `${arg1}.js`);
92}

Callers 1

getInputJsMethod · 0.90

Calls 2

isRunningInErbDllFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected