Comparing version 1.1.0 to 1.1.1
module.exports = { | ||
helpString: | ||
'Usage: tti encode|decode\n\ | ||
help: | ||
'Usage:\n\n\ | ||
tti encode <input file> <output file> - encodes text to image.\n\ | ||
tti decode <input file> <output file> - decodes text from image.\n\n\ | ||
For more information use "tti -help"', | ||
extendedHelp: | ||
'Encoding: tti encode <input text file> <output image file>\n\ | ||
Options:\n\ | ||
\t--h|--help - Show this help guide.\n\n\ | ||
Encoding: tti encode <input text> <output image>\n\ | ||
Options:\n\ | ||
\t--l|--long - Wraps to single line of pixels.\n\n\ | ||
Decoding: tti decode <input image> <output text>\n\ | ||
Decoding: tti decode <input image file> <output text file>\n\ | ||
Options:\n\ | ||
@@ -11,0 +13,0 @@ \t--hex - Decodes image to a hex bytes string.', |
@@ -9,5 +9,2 @@ require('colors'); | ||
console.log(`${'i'.cyan} TTI by zephyr`); | ||
/** | ||
@@ -132,3 +129,3 @@ * Functions and variables. | ||
if (cl.flags.h || cl.flags.help) { | ||
console.log(config.helpString); | ||
console.log(config.extendedHelp); | ||
process.exit(1); | ||
@@ -146,5 +143,5 @@ } | ||
} else { | ||
console.log('❌ Input file does not found.'); | ||
console.log('❌ Input file not found.'); | ||
} | ||
} else { | ||
} else if (cl.module === 'decode') { | ||
if (fs.existsSync(cl.arguments.input)) { | ||
@@ -157,4 +154,6 @@ (async () => { | ||
} else { | ||
console.log('❌ Input file does not found.'); | ||
console.log('❌ Input file not found.'); | ||
} | ||
} else { | ||
console.log(config.help); | ||
} |
{ | ||
"name": "tti.js", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Text to image conversion utility.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/tti.js", |
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
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
9238
258
0