@shaibonfil/dkt
v1.0.1
Published
Developer Kit Tools - A CLI tool to help developers with various tasks.
Maintainers
Readme
dkt (DevKit)
Developer Kit Tools - A CLI tool to help developers with various tasks. Zero-friction tools for your daily terminal workflow. Offline first, instant startup, and pipe-friendly.
Installation
# Install globally via npm
npm install -g @shaibonfil/dktUsage
Simply run dkt to see the help menu, or call a specific "blade" directly.
dkt <command> [options]The Commands
Security & Auth
JWT Decoder (jwt) Decode tokens instantly without sending them to external websites. Checks expiration automatically.
dkt jwt <token>
# Output: Header, Payload, and "Expired/Valid" status with relative time.Password Generator (pwd) Generate cryptographically secure secrets/passwords.
dkt pwd # Default 24 chars
dkt pwd -l 32 -c # 32 chars, copy to clipboard
dkt pwd --safe # No ambiguous chars (0, O, 1, l)Hash Generator (hash) Generate cryptographic signatures (MD5, SHA1, SHA256) for strings or files.
dkt hash "hello world" # Hash a string
dkt hash -f ./backup.zip # Hash a file (streams safely)Privacy Masker (mask) Redact PII (Emails, IPs, Credit Cards) from logs or text.
dkt mask "Error for [email protected]" # Output: u***@e***.com
cat server.log | dkt mask # Pipe a log file to sanitize itData & Formatting
JSON Formatter (json) Pretty print or minify JSON. Supports piping!
# Pretty print a file
cat log.json | dkt json
# Pipe from API
curl -s [https://api.github.com](https://api.github.com) | dkt json
# Minify for env vars
echo '{"a": 1}' | dkt json -mURL Tools (url) Encode or decode URL components.
dkt url "https%3A%2F%2Fgoogle.com" # Decode
dkt url -e "hello world" # EncodeUUID Generator (uuid) Generate UUID v4 strings.
dkt uuid # Generate 1
dkt uuid -n 10 # Generate 10
dkt uuid -c # Copy to clipboardBase64 (base64) Encode or decode strings quickly.
dkt base64 "hello world" # Encode
dkt base64 -d "aGVsbG8=" # DecodeCase Converter (case) Convert strings between naming conventions (Camel, Snake, Kebab, Pascal, Constant, Title and Path).
dkt case "user_first_name"
# Output:
# Camel Case userFirstName
# Pascal Case UserFirstName
# Snake Case user_first_name
# Kebab Case user-first-name
# Constant Case USER_FIRST_NAME
# Title Case User First Name
# Path Case user/first/nameUtilities & DevOps
Git Janitor (gone) Safely delete local branches that have been merged/deleted on remote.
dkt gone # Fetches remote and asks to delete dead branches
dkt gone -f # Force delete without confirmationCron Explainer (cron) Translate cron expressions into plain English.
dkt cron "5 4 * * *" # Output: "At 04:05 AM, every day" + ASCII Cheat Sheet
dkt cron "*/15 * * * *" # Output: "Every 15 minutes, every hour, every day" + ASCII Cheat SheetTime Converter (time) Convert between Unix Timestamp (seconds/ms) and Human Readable dates. Auto-detects format.
dkt time # Show current time in all formats
dkt time 1732142404 # Convert Unix timestamp
dkt time -c # Copy current timestamp to clipboardHTTP Status Codes (http) Lookup HTTP status codes and definitions offline.
dkt http 418 # "I'm a teapot"
dkt http # List common codesPort Killer (port) Kill the process hogging a port (cross-platform).
dkt port 3000 # Kills whatever is running on port 3000My IP (myip) Get your Local LAN IP and Public WAN IP instantly.
dkt myip # Show IPs
dkt myip -c # Copy public IPFrontend & Mobile
QR Code Generator (qr) Generate a QR code in your terminal. Great for testing localhost on mobile.
dkt qr "[http://192.120.1.196:3000](http://192.120.1.196:3000)"Lorem Ipsum (lorem) Generate placeholder text for UI testing.
dkt lorem # 1 sentence
dkt lorem -p 2 # 2 paragraphs
dkt lorem -w 10 # 10 wordsPro Tips
Piping Support Most commands support standard input (stdin). This is powerful for chaining tools.
# Generate a secure secret and encode it immediately
dkt pwd -l 32 | dkt base64 | dkt qrClipboard Integration Almost every command has a -c or --copy flag. Stop highlighting text with your mouse!
