Comparing version 1.0.3 to 1.0.4
@@ -7,3 +7,3 @@ #!/usr/bin/env node | ||
program.version("1.0.3").description("a tool for deal srt"); | ||
program.version("1.0.4").description("a tool for deal srt"); | ||
@@ -17,4 +17,4 @@ program | ||
const resPath = "./en-zh-merged.srt"; | ||
const enSrts = fs.readFileSync(path.resolve(__dirname, enSrcPath), "utf8"); | ||
const zhSrts = fs.readFileSync(path.resolve(__dirname, zhSrcPath), "utf8"); | ||
const enSrts = fs.readFileSync(enSrcPath, "utf8"); | ||
const zhSrts = fs.readFileSync(zhSrcPath, "utf8"); | ||
@@ -39,3 +39,4 @@ const resultArr = []; | ||
} | ||
fs.writeFileSync(path.resolve(__dirname, resPath), resultArr.join("\n")); | ||
fs.writeFileSync(resPath, resultArr.join("\n")); | ||
console.log(`merge success 💙💙`); | ||
} else { | ||
@@ -42,0 +43,0 @@ console.error("en not like zh srt!!!"); |
{ | ||
"name": "csrt-tools", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "replace the normal part of srt", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
725667
7
44