Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tti.js

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tti.js - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

14

lib/config.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc