Detect whether script is running via Node.js or io.js.
Purpose: Decide to apply transpilers, such as babel, or not.
$ npm install what-runtime --save
var runtime = require('what-runtime');
// runtime = 'nodejs' if Node.js
// runtime = 'iojs' if io.js
WTFPL – Do What the Fuck You Want to Public License