我目前正在尝试将一些旧的 CoffeeScript 代码(旧项目)移植到本机 NodeJS;我很难理解这到底在做什么?或 Node 中的等价物?
builder.macro_extensions = [
'iced'
'nsi'
'txt'
]
await exec """
find #{temp} | grep #{(_.map @macro_extensions, (x) -> "-e '\\.#{x}'").join ' '}
""", {silent:on}, defer e,r
if e then return cb e
如果有人能指出我正确的方向,那就完美了!