【文件属性】:
文件名称:js2cfml:JavaScript到CFML转译器
文件大小:61KB
文件格式:ZIP
更新时间:2021-05-03 16:40:18
JavaScript
js2cfml
JavaScript到CFML脚本源到源编译器。
这是一个实验。 请不要使用它。
安装
安装
全局安装js2cfml: npm install -g js2cfml
用法
将单个JavaScript文件转换为CFML:
js2cfml examples/simple.js > simple.cfc
由于js2cfml将CFML代码输出到stdout,因此您可以在转换后立即运行它:
特征
它会转换什么?
课程(ES6)
吸气剂和二传手(ES6)
命名空间(ES6)
循环(while / for / do-while / for-of / for-in)
箭头功能(ES6)
模板字符串(ES6)
函数和闭包
有条件的
大批
Array.prototype.unshift
Array.prototype.shift
Array.prototype.re
【文件预览】:
js2cfml-master
----.gitignore(23B)
----core()
--------global.js(328B)
--------math.js(3KB)
--------string.js(9KB)
--------json.js(757B)
--------promise.js(479B)
--------regexp.js(3KB)
--------console.js(354B)
--------date.js(369B)
--------array.js(6KB)
--------number.js(745B)
--------function.js(1KB)
--------object.js(421B)
----package.json(595B)
----package-lock.json(47KB)
----.travis.yml(104B)
----LICENSE(1KB)
----index.js(38KB)
----utils.js(2KB)
----README.md(3KB)
----scope.js(2KB)
----js2cfml(1KB)
----core.js(3KB)
----test()
--------generate.js(1KB)
--------suite.js(874B)
--------fixtures()