Comparing version 1.0.0 to 1.0.1
41
index.js
@@ -5,24 +5,4 @@ const { program } = require("commander"); | ||
program | ||
.version("1.0.0") // 设置版本号 | ||
.description("a tool for resolve srt"); // 设置程序描述 | ||
program.version("1.0.1").description("a tool for deal srt"); | ||
// 添加帮助命令 | ||
program.on("--help", () => { | ||
console.log(""); | ||
console.log("example:"); | ||
console.log("csrt-tool replace <srcPath>"); | ||
}); | ||
// program | ||
// .command("split") | ||
// .description("Split a string into substrings and display as an array") | ||
// .argument("<string>", "string to split") | ||
// .option("--first", "display just the first substring") | ||
// .option("-s, --separator <char>", "separator character", ",") | ||
// .action((str, options) => { | ||
// const limit = options.first ? 1 : undefined; | ||
// console.log(str.split(options.separator, limit)); | ||
// }); | ||
program | ||
@@ -61,18 +41,13 @@ .command("merge <enSrcPath> <zhSrcPath>") | ||
}); | ||
program.on("--help", () => { | ||
console.log(""); | ||
console.log("example:"); | ||
console.log("csrt-tool replace <srcPath>"); | ||
}); | ||
program.parse(process.argv); | ||
// program | ||
// .on("-s, --src <srcPath>", "目标srt", parseInt, 1) | ||
// .description("向指定的人打招呼") | ||
// .action((name, options) => { | ||
// console.log(`你好${name}-${options}!`); | ||
// }); | ||
// 添加默认处理逻辑 | ||
if (!process.argv.slice(2).length) { | ||
program.outputHelp(); | ||
} | ||
// const enPath = "./lecture3-en.srt"; | ||
// const zhPath = "./lecture3-zh.srt"; | ||
// const resPath = "./lecture3-zh-fixed.srt"; |
{ | ||
"name": "csrt-tools", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "replace the normal part of srt", | ||
@@ -9,2 +9,6 @@ "main": "index.js", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/caoxmm/csrt-tools.git" | ||
}, | ||
"author": "", | ||
@@ -11,0 +15,0 @@ "license": "ISC", |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6
1
4
1
545745
42