@@ -1503,6 +1503,21 @@ tarball.
1503
1503
- ` 'Argon' ` for the 4.x LTS line beginning with 4.2.0.
1504
1504
- ` 'Boron' ` for the 6.x LTS line beginning with 6.9.0.
1505
1505
- ` '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.
1506
1521
1507
1522
<!-- eslint-skip -->
1508
1523
``` js
@@ -1511,7 +1526,12 @@ tarball.
1511
1526
lts: ' Argon' ,
1512
1527
sourceUrl: ' https://nodejs.org/download/release/v4.4.5/node-v4.4.5.tar.gz' ,
1513
1528
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 ,
1515
1535
}
1516
1536
```
1517
1537
0 commit comments