How to to get PID of current instance of nw.exe
in node-webkit from my JavaScript code?
Asked
Active
Viewed 492 times
0
-
1what's result of `process.pid`? – Andrey Sidorov Jun 18 '13 at 14:46
-
Thank you, it returns pid of `nw.exe`. – Jun 18 '13 at 15:11
-
@AndreySidorov can you please write that as an answer, so it can be accepted? – verybadalloc Jun 18 '13 at 15:19
1 Answers
1
As nw exposes all node api in addition to DOM, you can use process.pid

Andrey Sidorov
- 24,905
- 4
- 62
- 75