@@ -1503,6 +1503,21 @@ tarball.
15031503 - ` 'Argon' ` for the 4.x LTS line beginning with 4.2.0.
15041504 - ` 'Boron' ` for the 6.x LTS line beginning with 6.9.0.
15051505 - ` 'Carbon' ` for the 8.x LTS line beginning with 8.9.1.
1506+ * ` majorVersion ` {number} The major version of Node.js.
1507+ * ` minorVersion ` {number} The minor version of Node.js.
1508+ * ` patchVersion ` {number} The patch version of Node.js.
1509+ * ` prereleaseTag ` {string} The SemVer pre-release tag for Node.js.
1510+ * ` computedVersion ` {number} A number representing the current version, created
1511+ using the following method:
1512+ ` (majorVersion << 16) + (minorVersion << 8) + patchVersion `
1513+ * ` compareVersion ` {function} Perform a SemVer comparison to the release
1514+ version.
1515+ * ` major `
1516+ * ` minor `
1517+ * ` patch `
1518+ * Returns: {number} ` -1 ` if the given version is lower than the release version,
1519+ ` 0 ` if the given version matches the process version, and ` 1 ` if the given
1520+ version is greater than the release version.
15061521
15071522<!-- eslint-skip -->
15081523``` js
@@ -1511,7 +1526,12 @@ tarball.
15111526 lts: ' Argon' ,
15121527 sourceUrl: ' https://nodejs.org/download/release/v4.4.5/node-v4.4.5.tar.gz' ,
15131528 headersUrl: ' https://nodejs.org/download/release/v4.4.5/node-v4.4.5-headers.tar.gz' ,
1514- libUrl: ' https://nodejs.org/download/release/v4.4.5/win-x64/node.lib'
1529+ libUrl: ' https://nodejs.org/download/release/v4.4.5/win-x64/node.lib' ,
1530+ majorVersion: 4 ,
1531+ minorVersion: 4 ,
1532+ patchVersion: 5 ,
1533+ prereleaseTag: ' ' ,
1534+ computedVersion: 263173 ,
15151535}
15161536```
15171537
0 commit comments