mirror of
https://github.com/JDM170/model_coder
synced 2025-12-10 05:57:19 +07:00
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:
@@ -12,10 +12,10 @@ const error = chalk.bold.red;
|
||||
|
||||
const argv = yargs(hideBin(process.argv))
|
||||
.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', {
|
||||
alias: 'p',
|
||||
describe: 'Password for the encryption',
|
||||
describe: 'Password for the decryption',
|
||||
type: 'string',
|
||||
coerce: arg =>
|
||||
arg && arg.length >= 6 ? arg : undefined
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"main": "coder.js",
|
||||
"private": "true",
|
||||
"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": {
|
||||
"chalk": "^4.1.2",
|
||||
|
||||
Reference in New Issue
Block a user