doc: change code lang and update it with latest Node.js

PR-URL: https://github.com/nodejs/node/pull/26987
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
pull/27036/head
gengjiawen 2019-03-29 23:50:23 +08:00 committed by Vse Mozhet Byt
parent 9b70a5c3f1
commit 1859769a1b
1 changed files with 16 additions and 15 deletions

View File

@ -2214,22 +2214,23 @@ console.log(process.versions);
Will generate an object similar to:
<!-- eslint-skip -->
```js
{ http_parser: '2.7.0',
node: '8.9.0',
v8: '6.3.292.48-node.6',
uv: '1.18.0',
```console
{ node: '11.13.0',
v8: '7.0.276.38-node.18',
uv: '1.27.0',
zlib: '1.2.11',
ares: '1.13.0',
modules: '60',
nghttp2: '1.29.0',
napi: '2',
openssl: '1.0.2n',
icu: '60.1',
unicode: '10.0',
cldr: '32.0',
tz: '2016b' }
brotli: '1.0.7',
ares: '1.15.0',
modules: '67',
nghttp2: '1.34.0',
napi: '4',
llhttp: '1.1.1',
http_parser: '2.8.0',
openssl: '1.1.1b',
cldr: '34.0',
icu: '63.1',
tz: '2018e',
unicode: '11.0' }
```
## Exit Codes