| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4782ec7 commit fbd18be
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2476,13 +2476,16 @@ added: v0.1.3 | |||
| 2476 | 2476 | ||
| 2477 | 2477 | * {string} | |
| 2478 | 2478 | ||
| 2479 | - The `process.version` property returns the Node.js version string in the form of | ||
| 2480 | - `v<major>.<minor>.<patch>`. | ||
| 2479 | + The `process.version` property contains the Node.js version string. | ||
| 2481 | 2480 | ||
| 2482 | 2481 | ```js | |
| 2483 | 2482 | console.log(`Version: ${process.version}`); | |
| 2483 | + // Version: v14.8.0 | ||
| 2484 | 2484 | ``` | |
| 2485 | 2485 | ||
| 2486 | + To get the version string without the prepended _v_, use | ||
| 2487 | + `process.versions.node`. | ||
| 2488 | + | ||
| 2486 | 2489 | ## `process.versions` | |
| 2487 | 2490 | <!-- YAML | |
| 2488 | 2491 | added: v0.2.0 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments