Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

csrt-tools

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csrt-tools - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.md

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc