Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/omkarcloud/botasaurus
/ _isWorker
Function
_isWorker
js/botasaurus-server-js/src/env.ts:8–11 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
6
}
7
8
function
_isWorker() {
9
const
args = process.argv;
10
return
args.includes(
'--worker'
)
11
}
12
13
const
isWorker: boolean = _isWorker();
14
const
isMaster: boolean = _isMaster();
Callers
1
env.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected