We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b01d314 commit 09e23b8Copy full SHA for 09e23b8
doc/api/process.md
@@ -2498,13 +2498,16 @@ added: v0.1.3
2498
2499
* {string}
2500
2501
-The `process.version` property returns the Node.js version string in the form of
2502
-`v<major>.<minor>.<patch>`.
+The `process.version` property contains the Node.js version string.
2503
2504
```js
2505
console.log(`Version: ${process.version}`);
+// Version: v14.8.0
2506
```
2507
2508
+To get the version string without the prepended _v_, use
2509
+`process.versions.node`.
2510
+
2511
## `process.versions`
2512
<!-- YAML
2513
added: v0.2.0
0 commit comments