tcv
v1.0.3
Published
TechConverter CLI - Convert JSON, YAML, Base64, Hex, and more from your terminal
Maintainers
Readme
tcv
A command-line tool for converting between common data formats. All conversions happen locally on your machine.
Installation
npm install -g tcvUsage
JSON/YAML Conversion
# Convert JSON to YAML
tcv json2yaml config.json
tcv json2yaml config.json -o output.yaml
# Convert YAML to JSON
tcv yaml2json docker-compose.yml
tcv yaml2json docker-compose.yml -o config.json
# Pipe input
echo '{"name":"test"}' | tcv json2yamlBase64
# Encode
tcv base64 encode "Hello World"
echo "Secret message" | tcv base64 encode
# Decode
tcv base64 decode "SGVsbG8gV29ybGQ="Hash Generation
tcv hash md5 "password"
tcv hash sha1 "password"
tcv hash sha256 "password"
tcv hash sha512 "password"
# Hash file content
cat file.txt | tcv hash sha256Hex/Binary Conversion
# Hex to Binary
tcv hex2bin "FF00AB"
# Binary to Hex
tcv bin2hex "11111111"
# Hex to C-Array (for embedded systems)
tcv hex2c "DEADBEEF"Cron Expression Decoder
tcv cron "0 9 * * 1-5"
# Output: At 09:00 AM, Monday through Friday
tcv cron "*/15 * * * *"
# Output: Every 15 minutesJWT Operations
# Decode JWT
tcv jwt decode "eyJhbGc..."
# Encode JWT (basic, for testing)
echo '{"header":{"alg":"HS256"},"payload":{"sub":"1234"}}' | tcv jwt encodeURL Encoding
# Encode
tcv url encode "hello world"
# Decode
tcv url decode "hello%20world"Text Transformations
tcv text upper "hello world" # HELLO WORLD
tcv text lower "HELLO WORLD" # hello world
tcv text camel "hello world" # helloWorld
tcv text snake "helloWorld" # hello_world
tcv text kebab "helloWorld" # hello-world
tcv text pascal "hello world" # HelloWorldAll Commands
tcv json2yaml [input] Convert JSON to YAML
tcv yaml2json [input] Convert YAML to JSON
tcv base64 <encode|decode> [input] Base64 encode/decode
tcv hash <algorithm> [input] Generate hash (md5, sha1, sha256, sha512)
tcv hex2bin <hex> Convert Hex to Binary
tcv bin2hex <binary> Convert Binary to Hex
tcv hex2c <hex> Convert Hex to C-Array
tcv cron <expression> Decode cron expression
tcv jwt <decode|encode> [input] JWT operations
tcv url <encode|decode> [input] URL encode/decode
tcv text <operation> [input] Text transformationsOptions
-o, --output <file>- Write output to file-h, --help- Display help-v, --version- Display version
Privacy
All conversions happen locally. No data is sent to any server.
License
MIT
Links
- npm: https://www.npmjs.com/package/tcv
- Website: https://techconverter.me
