How can my node.js code see if it's running under official nodejs, iojs, jxcore, or node-chakracore? -


there several forks of nodejs various reasons.

for node code see fork running under, best way?

the forks aware of are:

  • the official nodejs release
  • iojs - guess it's deprecated since it's rejoined official nodejs, it's still of interest
  • jxcore - fork supports multiple cpus/core; multiple js engines including v8, mozilla's spidermonkey, , microsoft's chakracore; , packaging of js apps npm doesn't need used users of apps
  • microsoft's fork of nodejs using edge browser's chakracore js engine via v8-compatibility shim

(i've asked companion question detecting js engine being used. question detecting fork being used.)

nodejs , iojs can checked process.release :

name: string value 'node' node.js. legacy io.js releases, 'io.js'.

as jxcore can use either process.jxversion or typeof jxcore !== 'undefined'


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -