javascript - Node.js 版本到 ECMAScript 版本的映射

标签 javascript node.js ecmascript-next

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许提出有关书籍、工具、软件库等建议的问题。您可以编辑问题,以便可以用事实和引用来回答它。


1年前关闭。







Improve this question




是否有来自 Node.js 版本的映射,例如0.10 或 14,对应的 ECMAScript 版本,例如ES5、ES2020?

As this question is closed, I can't post the solution I came up with as an answer, so it is here instead.

@bevry/node-versions includes fetchESVersionForNodeVersion(nodeVersion: string): Promise<string> which will fetch the ECMAScript version that was ratified by the time that the Node.js version was released.

最佳答案

Which features ship with which Node.js version by default?

The website node.green provides an excellent overview over supported ECMAScript features in various versions of Node.js, based on kangax's compat-table.


来源:https://nodejs.org/en/docs/es6/

关于javascript - Node.js 版本到 ECMAScript 版本的映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64545963/

相关文章:

javascript - 使用函数作为回调还是存储它?

javascript - 使用 grunt-contrib-uglify 丑化 javascript 代码

node.js - 仅在 Linux 上将原始图像字节馈送到 ffmpeg rawvideo 失败,缓冲区大小无效

reactjs - React - 如何 stub 使用属性初始值设定项语法的组件方法?

javascript - 从异步函数返回的 promise 中获取值(value)

angular - 我应该如何在 Angular 中使用 ES2020?

javascript - 如何检测 JavaScript 中的链式函数调用?

javascript - 选择函数中的单选按钮

javascript - 添加使用 jQuery 选择的选项

javascript - JavaScript 中字符串的长度