Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IgorWarzocha/howcode
/ getProcessEnvironmentVariable
Function
getProcessEnvironmentVariable
desktop/user-data-path.ts:4–6 ·
view source on GitHub ↗
(name: string)
Source
from the content-addressed store, hash-verified
2
import
path from
'node:path'
3
4
function
getProcessEnvironmentVariable(name: string) {
5
return
process.env[name]
6
}
7
8
let
cachedUserDataPath: string | null = null
9
Callers
2
getDefaultElectronUserDataPath
Function · 0.70
getDesktopUserDataPath
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected