【问题标题】:Is there some npm packages writing by es6 style?是否有一些以 es6 风格编写的 npm 包?
【发布时间】:2015-03-24 02:54:58
【问题描述】:

我想尝试写一些 es6 风格的 npm lib,但是找不到在线的 npm 包寻求帮助。是时候写es6风格的包了吗?

【问题讨论】:

    标签: node.js npm ecmascript-6


    【解决方案1】:

    请查看https://babeljs.io/

    安装

    $ npm install --global babel
    

    用法

    $ babel script.js
    

    你也可以试试online

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-09
      • 2015-10-05
      • 2019-10-28
      • 2019-12-13
      • 1970-01-01
      • 1970-01-01
      • 2021-11-29
      相关资源
      最近更新 更多