没有合适的资源?快使用搜索试试~ 我知道了~
5to6-codemod:一组codemod,可让您将js代码从ES5转换为ES6
共74个文件
js:66个
md:2个
json:2个
需积分: 17 2 下载量 59 浏览量
2021-05-02
16:17:51
上传
评论
收藏 78KB ZIP 举报
温馨提示
5to6-codemod 一组 ,使您可以使用将JavaScript代码从ES5转换为ES6。 用法 npm install -g jscodeshift npm install 5to6-codemod jscodeshift -t node_modules/5to6-codemod/transforms/[transform].js [files] 通过git diff查看更改。 保留您想要的东西,如果不需要,将其丢弃。 魔法! 选项标志 当执行codemods时,您可以像这样配置选项: jscodeshift -t node_modules/5to6-codemod/transforms/[transform].js [files] --key=value 重铸选项 我们的转换将自动区分并通过通过配置键。 有关Recast的配置的官方文档可在找到。 当前,我们支持以下重铸
资源推荐
资源详情
资源评论
收起资源包目录
5to6-codemod-master.zip (74个子文件)
5to6-codemod-master
.eslintrc 207B
utils
main.js 8KB
transforms
no-strict.js 867B
simple-arrow.js 947B
exports.js 6KB
amd.js 3KB
named-export-generation.js 7KB
let.js 573B
cjs.js 9KB
import-cleanup.js 1KB
.travis.yml 177B
test
transforms
no-strict.js 1KB
simple-arrow.js 857B
exports.js 2KB
amd.js 798B
named-export-generation.js 1KB
let.js 784B
cjs.js 2KB
import-cleanup.js 689B
fixtures
amd.before.js 641B
no-strict.after.js 24B
simple-arrow.before.js 169B
no-strict-closure.after.js 55B
cjs
ignore.after.js 318B
object.before.js 203B
called.before.js 383B
declaration.before.js 402B
comments.before.js 685B
hoist.before.js 1KB
mapper.after.js 226B
called.after.js 545B
ignore.before.js 318B
standalone.before.js 100B
object.after.js 190B
hoist.after.js 1KB
mapper.before.js 212B
standalone.after.js 93B
comments.after.js 652B
declaration.after.js 375B
import-cleanup
common.after.js 136B
common.before.js 307B
let.after.js 202B
exports
keyed.before.js 381B
ignore.after.js 41B
called.before.js 114B
keyed.after.js 346B
called.after.js 91B
ignore.before.js 41B
default-with-keyed.before.js 266B
default.before.js 175B
default-with-keyed.after.js 255B
default.after.js 178B
amd.after.js 541B
no-strict.before.js 119B
no-strict-closure.before.js 74B
simple-arrow.after.js 137B
named-export-generation
ignore.after.js 173B
declared-mutated.before.js 284B
declared.before.js 161B
expression.after.js 316B
references.after.js 327B
declared.after.js 211B
references.before.js 247B
ignore.before.js 173B
expression.before.js 228B
declared-mutated.after.js 355B
let.before.js 184B
utils.js 10KB
README.md 3KB
.gitignore 19B
CHANGELOG.md 742B
.eslintignore 13B
package-lock.json 148KB
package.json 786B
共 74 条
- 1
资源评论
韦先波
- 粉丝: 72
- 资源: 4678
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功