From 1b27f098bdd1f8d5ea87f118d980f1aafe5195df Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 24 Aug 2020 12:30:44 -0700 Subject: [PATCH] doc: provide more guidance about process.version PR-URL: https://github.com/nodejs/node/pull/34909 Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Benjamin Gruenbaum --- doc/api/process.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index 7cbc1594d6b98c..a4d51978c1d3ff 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2445,13 +2445,16 @@ added: v0.1.3 * {string} -The `process.version` property returns the Node.js version string in the form of -`v..`. +The `process.version` property contains the Node.js version string. ```js console.log(`Version: ${process.version}`); +// Version: v14.8.0 ``` +To get the version string without the prepended _v_, use +`process.versions.node`. + ## `process.versions`