harmonyos2-harmonizer:es6转译器

时间:2021-07-01 14:59:05
【文件属性】:
文件名称:harmonyos2-harmonizer:es6转译器
文件大小:27KB
文件格式:ZIP
更新时间:2021-07-01 14:59:05
系统开源 和声2 调和器 现场演示: 一个 JavaScript es6 到 es5 转译器。 它是用 es6 语法编写的,它自己被转译。 该项目将在 BETA 中考虑。 用法 命令行工具,用于发布到 npm(或其他): npm install harmonizer -g cd /path/to/project/written/in/es6/syntax harmonize --input ./ --output /path/to/project/compiled cd /path/to/project/compiled npm publish 您可以查看源文件的更改: harmonize --input ./ --output /path/to/project/compiled --watch 您还可以排除要与 glob 模式协调的文件: harmonize --input ./ --output /path/to/project/compiled --watch --passthrough "test/**/*" 通用JS API 它需要一个能够解析 es6 语法的 javascript 解
【文件预览】:
harmonizer-master
----package.json(985B)
----index.js(1KB)
----transform()
--------computed-properties.js(2KB)
--------modules.js(4KB)
--------classes.js(4KB)
--------for-of.js(2KB)
--------spread.js(3KB)
--------let-declarations.js(2KB)
--------comprehensions.js(3KB)
--------rest-param.js(566B)
--------patterns.js(7KB)
--------arrow-functions.js(1KB)
--------default-params.js(577B)
--------template-literals.js(1KB)
--------shorthands.js(226B)
----util()
--------string.js(305B)
--------id.js(1024B)
--------insertion.js(1KB)
----README.md(5KB)
----.npmignore(19B)
----harmonize(4KB)
----test()
--------index.js(664B)
--------transform()

网友评论