TechConverter CLI - Convert JSON, YAML, Base64, Hex, and more from your terminal
npm install tcvbash
npm install -g tcv
`
Usage
$3
`bash
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 json2yaml
`
$3
`bash
Encode
tcv base64 encode "Hello World"
echo "Secret message" | tcv base64 encode
Decode
tcv base64 decode "SGVsbG8gV29ybGQ="
`
$3
`bash
tcv hash md5 "password"
tcv hash sha1 "password"
tcv hash sha256 "password"
tcv hash sha512 "password"
Hash file content
cat file.txt | tcv hash sha256
`
$3
`bash
Hex to Binary
tcv hex2bin "FF00AB"
Binary to Hex
tcv bin2hex "11111111"
Hex to C-Array (for embedded systems)
tcv hex2c "DEADBEEF"
`
$3
`bash
tcv cron "0 9 1-5"
Output: At 09:00 AM, Monday through Friday
tcv cron "/15 *"
Output: Every 15 minutes
`
$3
`bash
Decode JWT
tcv jwt decode "eyJhbGc..."
Encode JWT (basic, for testing)
echo '{"header":{"alg":"HS256"},"payload":{"sub":"1234"}}' | tcv jwt encode
`
$3
`bash
Encode
tcv url encode "hello world"
Decode
tcv url decode "hello%20world"
`
$3
`bash
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" # HelloWorld
`
All Commands
`
tcv json2yaml [input] Convert JSON to YAML
tcv yaml2json [input] Convert YAML to JSON
tcv base64 [input] Base64 encode/decode
tcv hash [input] Generate hash (md5, sha1, sha256, sha512)
tcv hex2bin Convert Hex to Binary
tcv bin2hex Convert Binary to Hex
tcv hex2c Convert Hex to C-Array
tcv cron Decode cron expression
tcv jwt [input] JWT operations
tcv url [input] URL encode/decode
tcv text [input] Text transformations
`
Options
- -o, --output - Write output to file
- -h, --help - Display help
- -v, --version` - Display version