How can my node.js code see if it's running under official nodejs, iojs, jxcore, or node-chakracore?
问题 There are now several forks of nodejs for various reasons. For my node code to see which fork it is running under, what is currently the best way? The forks I am aware of are: The official nodejs release iojs - I guess it's now deprecated since it's rejoined the official nodejs, but it's still of interest JXcore - a fork that supports multiple CPUs/core; multiple JS engines including V8, Mozilla's SpiderMonkey, and Microsoft's ChakraCore; and packaging of js apps so npm doesn't need to be