Fix messages in decoder.js, add decoder build script to package.json

Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2022-07-02 20:41:52 +07:00
parent 4996d5cb07
commit 94983073ec
2 changed files with 4 additions and 3 deletions

View File

@@ -12,10 +12,10 @@ const error = chalk.bold.red;
const argv = yargs(hideBin(process.argv)) const argv = yargs(hideBin(process.argv))
.usage('Usage: $0 -pass [pass] -res [path]') .usage('Usage: $0 -pass [pass] -res [path]')
.example('$0 -pass encryptme -res resourceName', 'Encrypt resourceName') .example('$0 -pass decryptme -res resourceName', 'Decrypt resourceName')
.options('pass', { .options('pass', {
alias: 'p', alias: 'p',
describe: 'Password for the encryption', describe: 'Password for the decryption',
type: 'string', type: 'string',
coerce: arg => coerce: arg =>
arg && arg.length >= 6 ? arg : undefined arg && arg.length >= 6 ? arg : undefined

View File

@@ -4,7 +4,8 @@
"main": "coder.js", "main": "coder.js",
"private": "true", "private": "true",
"scripts": { "scripts": {
"buildc": "pkg --target node16-win-x64 --compress GZip coder.js" "buildc": "pkg --target node16-win-x64 --compress GZip coder.js",
"buildd": "pkg --target node16-win-x64 --compress GZip decoder.js"
}, },
"dependencies": { "dependencies": {
"chalk": "^4.1.2", "chalk": "^4.1.2",