如何知道我的NODEJS中的哪个javascript版本?

时间:2022-03-25 20:26:44

I want to know which javascript version is my NodeJS is supporting ?

我想知道我的NodeJS支持哪个javascript版本?

2 个解决方案

#1


19  

Use process.versions. From that page in the documentation:

使用process.versions。从文档中的该页面:

console.log(process.versions);

outputs

输出

{ node: '0.4.12',
  v8: '3.1.8.26',
  ares: '1.7.4',
  ev: '4.4',
  openssl: '1.0.0e-fips' }

EDIT: V8 uses the ECMAScript as specified in ECMA-262, 5th edition.

编辑:V8使用ECMA-262第5版中规定的ECMAScript。

Reference: http://code.google.com/p/v8/

参考:http://code.google.com/p/v8/

#2


2  

According to its documentation, this command could be used;

根据其文档,可以使用此命令;

node -p process.versions.v8

#1


19  

Use process.versions. From that page in the documentation:

使用process.versions。从文档中的该页面:

console.log(process.versions);

outputs

输出

{ node: '0.4.12',
  v8: '3.1.8.26',
  ares: '1.7.4',
  ev: '4.4',
  openssl: '1.0.0e-fips' }

EDIT: V8 uses the ECMAScript as specified in ECMA-262, 5th edition.

编辑:V8使用ECMA-262第5版中规定的ECMAScript。

Reference: http://code.google.com/p/v8/

参考:http://code.google.com/p/v8/

#2


2  

According to its documentation, this command could be used;

根据其文档,可以使用此命令;

node -p process.versions.v8