node es6 带有跟踪器编译的节点 harmony可执行文件
节点-es6 使用完整跟踪器编译的 node --harmony 可执行文件。traceurrc
通过用于源映射堆栈跟踪。
安装
$ npm install -g node-es6
运行
示例代码:
// index.js
let helloWorld = 'hello world';
console.log(helloWorld);
使用 node-es6 运行:
$ node-es6 index.js
hello world
进入 traceur 模式:
$ node-es6 traceur
> let a = 'hello';
> console.log(`${a}`);
hello
下载地址
用户评论