This commit is contained in:
2024-11-10 02:24:30 -05:00
parent 8ad4dd7182
commit 0fd330eaab
6 changed files with 137 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
import { bashRunAndReturnSync } from "./bashUtils";
export const gitUserEmail = bashRunAndReturnSync({
command: 'git config user.email'
})
export const gitUserName = bashRunAndReturnSync({
command: 'git config user.name'
})
export const jjUserName = (userName = gitUserEmail) => {
const result = userName.replace(/@/g, '__').replace(/\./g, '-')
return result
}