Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: provide more guidance about process.version
PR-URL: #34909
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
  • Loading branch information
Trott committed Aug 27, 2020
commit 09e23b842b83ab0f2b093ea8d47821fabb47ede2
7 changes: 5 additions & 2 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2498,13 +2498,16 @@ added: v0.1.3

* {string}

The `process.version` property returns the Node.js version string in the form of
`v<major>.<minor>.<patch>`.
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`
<!-- YAML
added: v0.2.0
Expand Down