-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect in script if io.js or node is running #1447
Comments
Since you mentioned it, if |
I believe you check navigator.userAgent contains "IE". In all seriousness though I'd be curious what scenario's you have that need to know. Perhaps there's a better way of branching. |
Additionally, if io.js and nodejs merges - introducing |
Related #493 |
Yeah, the real fix will hopefully be with #493, but it seems a bit stale. Another alternative is to check |
Check if |
Work-arounds like these are what caused Microsoft to have to skip an entire version for Windows. |
+1000 @isavegas |
Besides, this advice is broken now with 2.0.0 ;) |
s/is/is equal or greater than/g 👍 |
I would absolutely adore the ability to check whether Node or io.js is running the script. Perhaps via changing
to
As it is, the best way seems to be to have the script fork a child_process of the executable that started it, with the
-h
flag, then to parse foriojs.org
The text was updated successfully, but these errors were encountered: