devbrew
v0.2.0
Published
40+ developer tools in your terminal — JSON formatter, Base64, JWT decoder, UUID generator, hash, regex tester, and more. Zero dependencies.
Downloads
199
Maintainers
Readme
DevBrew CLI (dwm)
40+ developer tools in your terminal. Zero dependencies, pure Node.js.
Install
npm install -g devbrewUsage
dwm <command> [subcommand] [input]
echo "input" | dwm <command> [subcommand]Commands
| Command | Subcommands | Description |
|---------|-------------|-------------|
| json | format, minify, validate | JSON tools |
| base64 | encode, decode | Base64 encode/decode |
| hash | md5, sha1, sha256, sha512 | Hash generators |
| uuid | — | Generate UUID v4 |
| jwt | decode | JWT decoder |
| url | encode, decode | URL encode/decode |
| html | encode, decode | HTML entity encode/decode |
| timestamp | — | Timestamp converter |
| regex | test | Regex tester |
| password | — | Password generator |
| count | — | Character/word/line counter |
| escape | json, unjson | JSON string escape/unescape |
Examples
# JSON
dwm json format '{"name":"dev","version":1}'
cat data.json | dwm json minify
dwm json validate '{"valid": true}'
# Base64
dwm base64 encode "hello world"
echo "aGVsbG8=" | dwm base64 decode
# Hashing
dwm hash sha256 "my secret"
cat file.txt | dwm hash md5
# UUID
dwm uuid # generate 1
dwm uuid 5 # generate 5
# JWT
dwm jwt decode "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.xxx"
# URL
dwm url encode "hello world & foo=bar"
dwm url decode "hello%20world"
# Timestamp
dwm timestamp # show current time
dwm timestamp 1700000000 # unix → human
dwm timestamp "2024-01-15T10:30:00Z" # human → unix
# Regex
dwm regex test "\d+" "abc 123 def 456"
echo "[email protected]" | dwm regex test "\w+@\w+"
# Password
dwm password # 16-char password
dwm password 32 # 32-char password
dwm password 20 5 # 5 passwords of length 20
# Text stats
echo "hello world" | dwm count
# HTML entities
dwm html encode '<div>hello & "world"</div>'
# Escape
dwm escape json 'hello "world"'Pipe Support
All commands support piped input:
cat data.json | dwm json format
echo "hello" | dwm base64 encode
pbpaste | dwm hash sha256
curl -s api.example.com | dwm json formatFlags
| Flag | Description |
|------|-------------|
| --help, -h | Show help (global or per-command) |
| --version, -v | Show version |
Privacy
All processing happens locally. No data is sent anywhere. Zero network calls.
License
MIT
