How to use the ElectronProcessType function from util
Find comprehensive JavaScript util.ElectronProcessType code examples handpicked from public code repositorys.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371
function GetElectronProcessType() { const electronProcessType = util.GetElectronProcessType(); switch (electronProcessType) { case util.ElectronProcessType.ElectronMainNode: return 'main'; case util.ElectronProcessType.Node: case util.ElectronProcessType.ElectronNode: return 'node'; case util.ElectronProcessType.Browser: case util.ElectronProcessType.ElectronBrowser:
0
0
1
+ 41 other calls in file
util.promisify is the most popular function in util (378 examples)