m3u8-to-mp4-cli
Advanced tools
Comparing version 1.1.0 to 1.1.1
15
index.js
#!/usr/bin/env node | ||
const converter = require("node-m3u8-to-mp4"); | ||
const ProgressBar = require("progress"); | ||
@@ -12,2 +13,4 @@ const url = process.argv[2]; | ||
let progressBar; | ||
converter( | ||
@@ -22,5 +25,11 @@ `${url}.m3u8`, | ||
case "downloading": | ||
console.log( | ||
"downloading process:" + ((index / total) * 100).toFixed(2) + "%" | ||
); | ||
if(!progressBar) { | ||
progressBar = new ProgressBar('downloading [:bar] :percent :etas', { | ||
complete: '=', | ||
incomplete: ' ', | ||
total: total, | ||
width: 20 | ||
}); | ||
} | ||
progressBar.tick(); | ||
break; | ||
@@ -27,0 +36,0 @@ case "combining": |
{ | ||
"name": "m3u8-to-mp4-cli", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "m3u8 hosted file to mp4", | ||
@@ -18,3 +18,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"node-m3u8-to-mp4": "^2.0.2" | ||
"node-m3u8-to-mp4": "^2.0.2", | ||
"progress": "^2.0.3" | ||
}, | ||
@@ -21,0 +22,0 @@ "devDependencies": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
15086888
102
84483
2
1
+ Addedprogress@^2.0.3
+ Addedprogress@2.0.3(transitive)