我想尝试用es6风格写一些npm lib,但是找不到一些在线的npm包来获得帮助。 现在是编写es6风格包的时候了吗?
请查看https://babeljs.io/ 。
安装
$ npm install --global babel
用法
$ babel script.js
你也可以在网上试试。