use os.homeDir

This commit is contained in:
2024-05-14 13:47:53 +02:00
parent 7c1c36da13
commit ae334fc71c
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
const {startBookWithNumbers} = require('./src/appointment')
const {homedir} = require("os");
homeDir = homedir()
//faubourg, random
startBookWithNumbers(1, 4000, "random", "/Users/panlei/Desktop/yahoo_aol.xlsx", true, false).then((r) => {
startBookWithNumbers(1, 10000, "random", homeDir + "/Desktop/contact_list_all.xlsx", true, false).then((r) => {
console.log(r)
})