Install readline

This commit is contained in:
freearhey 2025-01-16 21:32:50 +03:00
parent 8202218682
commit e842ada752
4 changed files with 29 additions and 0 deletions

11
package-lock.json generated
View file

@ -63,6 +63,7 @@
"pako": "^2.1.0",
"parse-duration": "^1.0.0",
"pdf-parse": "^1.1.1",
"readline": "^1.3.0",
"run-script-os": "^1.1.6",
"serve": "^14.2.4",
"signale": "^1.4.0",
@ -7103,6 +7104,11 @@
"node": ">= 6"
}
},
"node_modules/readline": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz",
"integrity": "sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg=="
},
"node_modules/registry-auth-token": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz",
@ -13290,6 +13296,11 @@
"util-deprecate": "^1.0.1"
}
},
"readline": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz",
"integrity": "sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg=="
},
"registry-auth-token": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz",

View file

@ -92,6 +92,7 @@
"pako": "^2.1.0",
"parse-duration": "^1.0.0",
"pdf-parse": "^1.1.1",
"readline": "^1.3.0",
"run-script-os": "^1.1.6",
"serve": "^14.2.4",
"signale": "^1.4.0",

View file

@ -6,6 +6,18 @@ import nodeCleanup from 'node-cleanup'
import { program } from 'commander'
import inquirer, { QuestionCollection } from 'inquirer'
import Fuse from 'fuse.js'
import readline from 'readline'
if (process.platform === 'win32') {
readline
.createInterface({
input: process.stdin,
output: process.stdout
})
.on('SIGINT', function () {
process.emit('SIGINT')
})
}
program.argument('<filepath>', 'Path to *.channels.xml file to edit').parse(process.argv)

View file

@ -4118,6 +4118,11 @@ readable-stream@^3.4.0, readable-stream@^3.6.0:
string_decoder "^1.1.1"
util-deprecate "^1.0.1"
readline@^1.3.0:
version "1.3.0"
resolved "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz"
integrity sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==
registry-auth-token@3.3.2:
version "3.3.2"
resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz"