added the 'anime' cli command

This commit is contained in:
Itamar Oren
2023-02-26 20:41:10 -05:00
parent 21b8ec4d2a
commit d9f848734a
3 changed files with 15 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env node
import animeMain from "./anime/getAndSave.js";
function fromCLI() {
const argsRaw = [...process.argv].slice(2);
animeMain(argsRaw);
}
fromCLI();
+1
View File
@@ -0,0 +1 @@
{"apath":"","vpath":"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe"}
+3 -2
View File
@@ -4,12 +4,13 @@
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node ./anime/fromCLI.js"
},
"author": "ION606",
"license": "ISC",
"bin": {
"ion": "./main.js"
"ion": "./main.js",
"anime": "./anime_fromCLI.js"
},
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",