You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

node-version.js 227B

12345678910
  1. 'use strict';
  2. var match = process.version.match(/v(\d+)\.(\d+)\.(\d+)/);
  3. var nodeVersion = {
  4. major: parseInt(match[1], 10),
  5. minor: parseInt(match[2], 10),
  6. patch: parseInt(match[3], 10),
  7. };
  8. module.exports = nodeVersion;