1. 首页
  2. 考试认证
  3. 其它
  4. node es6 带有跟踪器编译的节点 harmony可执行文件

node es6 带有跟踪器编译的节点 harmony可执行文件

上传者: 2024-10-18 00:47:30上传 ZIP文件 3.9KB 热度 8次

节点-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

下载地址
用户评论