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.
10 lines
227 B
10 lines
227 B
'use strict';
|
|
|
|
var match = process.version.match(/v(\d+)\.(\d+)\.(\d+)/);
|
|
var nodeVersion = {
|
|
major: parseInt(match[1], 10),
|
|
minor: parseInt(match[2], 10),
|
|
patch: parseInt(match[3], 10),
|
|
};
|
|
|
|
module.exports = nodeVersion;
|
|
|