We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const $ = require('gogocode')
const input = `
const list = [ { text: "A策略", value: 1, tips: "Atip", }, { text: "B策略", value: 2, tips: "Btip", }, { text: "C策略", value: 3, tips: "Ctip", }, ]; const output = $(input2).replace( '{ text: $$1, value: $$2, $$$ }', '{ name: $$1, id: $$2, $$$ }' ).generate();
// 上面这样仅仅分析了一段代码 希望可以直接分析文件夹下面的所有内容
The text was updated successfully, but these errors were encountered:
这个自己玩node ,读取文件夹所有文件啊
Sorry, something went wrong.
https://github.com/thx/gogocode/tree/main/packages/gogocode-starter 1、clone gogocode 到本地 2、进入 /packages/gogocode-starter 目录 3、 执行 node ./src/batch-transform.js 即可看到批量操作js文件过程
No branches or pull requests
const $ = require('gogocode')
const input = `
const list = [$2, $ $$ }',$2, $ $$ }'
{
text: "A策略",
value: 1,
tips: "Atip",
},
{
text: "B策略",
value: 2,
tips: "Btip",
},
{
text: "C策略",
value: 3,
tips: "Ctip",
},
];
const output = $(input2).replace(
'{ text: $$1, value: $
'{ name: $$1, id: $
).generate();
// 上面这样仅仅分析了一段代码
希望可以直接分析文件夹下面的所有内容
The text was updated successfully, but these errors were encountered: