码迷,mamicode.com
首页 > 其他好文 > 详细

检测当前运行环境对es6的支持

时间:2019-03-30 13:25:03      阅读:317      评论:0      收藏:0      [点我收藏+]

标签:运行   sse   detection   gre   npm   检查   style   run   tps   

摘自:http://es6.ruanyifeng.com/#docs/intro

 

1、查看 node 已经实现的 es6 特性

 

// Linux & Mac
$ node --v8-options | grep harmony

// Windows
$ node --v8-options | findstr harmony

 

 

2、阮一峰老师写了一个工具 ES-Checker,用来检查各种运行环境对 ES6 的支持情况

 

$ npm install -g es-checker
$ es-checker

=========================================
Passes 24 feature Detections
Your runtime supports 57% of ECMAScript 6
=========================================

 

 

3、访问网址查看当前环境对 es6 的支持情况 

  http://ruanyf.github.io/es-checker/

  打开如下图所示,会展示当前环境对具体模块的支持情况

技术图片

 

检测当前运行环境对es6的支持

标签:运行   sse   detection   gre   npm   检查   style   run   tps   

原文地址:https://www.cnblogs.com/yummylucky/p/10626482.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!