Skip to content

dimeskigj/jack-cli

Repository files navigation

JACK

A versatile CLI tool for common developer tasks.

Kotlin MIT License PRs Welcome

Usage

UUIDs

UUID Generation

Generate one or more UUIDs or ULIDs using the generate subcommand.

jack uuid generate
jack uuid generate --count 5 --type ULID

Validate UUID/ULID

Validate a single UUID or ULID value using the validate subcommand.

jack uuid validate <uuid>
echo "3fa85f64-5717-4562-b3fc-2c963f66afa6" | jack uuid validate
jack uuid validate --type ULID <ulid>

Lorem Ipsum

Generate placeholder text.

jack lorem --count 50

QR Codes

Generate a QR code image from text or a URL.

jack qr "https://github.com" --output github.png
jack qr "Hello World" --foregroundColor FF0000 --backgroundColor FFFFFF

Hashing

Compute hashes for strings or files.

jack hash "my secret string" --algorithm SHA256
jack hash --file path/to/file.txt --algorithm MD5

Timestamps

Get the current Unix timestamp.

jack timestamp
jack timestamp --unit MILLISECONDS

JWT Decoding

Decode and pretty print a JWT token.

jack jwt "your.jwt.token"
jack jwt "your.jwt.token" --secret "your-secret"

JSON Formatting

Verify and pretty print JSON input.

jack json '{"name":"jack","version":1}'
jack json --file data.json --indent 2
cat data.json | jack json

Installation

Quick Install (Recommended)

Linux / macOS:

curl -fsSL https://raw.githubusercontent.com/dimeskigj/jack-cli/main/scripts/install.sh | bash

Windows (PowerShell):

iwr https://raw.githubusercontent.com/dimeskigj/jack-cli/main/scripts/install.ps1 -useb | iex

From Source

  1. Clone the repository:
    git clone https://github.com/dimeskigj/jack-cli.git
    cd jack-cli
  2. Build and install:
    ./gradlew installDist
  3. Add the binary to your PATH. The binary is located at build/install/jack/bin.

Native Image

To build a standalone executable that doesn't require Java installed:

./gradlew nativeCompile

The executable will be located in build/native/nativeCompile.

From Releases

Download the latest archive from the releases page, extract it, and add the bin folder to your PATH.

Features

  • UUID/ULID: Validation and bulk generation of unique identifiers.
  • Lorem Ipsum: Customizable placeholder text.
  • QR Codes: PNG generation with custom colors.
  • Hashing: MD5, SHA1, SHA256, SHA512 support.
  • Timestamps: Seconds or milliseconds.
  • JWT Decoding: Pretty print header and payload with signature verification.
  • JSON Formatting: Verify and pretty print JSON with custom indentation.

License

MIT

About

A versatile CLI tool for common developer tasks.

Resources

License

Stars

Watchers

Forks

Contributors 5