MCPcopy Create free account
hub / github.com/6dylan6/jdm / GetCurrentActivityScriptFileName

Function GetCurrentActivityScriptFileName

jdCookie.js:195–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193
194// 获取当前活动脚本的文件名
195function GetCurrentActivityScriptFileName() {
196 const path = require('path')
197 return path.basename(process.argv[1])
198}
199
200// 若在task_before.sh 中设置了要设置互助码环境变量的活动名称和环境变量名称信息,则在nodejs中处理,供活动使用
201let nameChinese = process.env.ShareCodeConfigChineseName

Callers 1

IsShareJsFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected