From fbd18be459ffd183a43ccd9c7a801c6e404bb1d7 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 b2743104feebed..0b51ef501f61bc 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2476,13 +2476,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`