dxkit-cli
v0.1.0
Published
A fast, pipe-friendly developer toolbox for the terminal. Encode, decode, hash, generate. All from your CLI.
Maintainers
Readme
Zero dependencies beyond Node.js built-ins for all core operations. Everything runs locally. No network calls, no telemetry, no data leaves your machine.
Install
npm install -g dxkit-cliOr run directly with npx:
npx dxkit-cli uuid
npx dxkit-cli hash sha256 "hello"
npx dxkit-cli pass -l 32Commands
dxt uuid Generate UUID v4
dxt uuid # single UUID
dxt uuid -n 5 # generate 5 UUIDsdxt b64 Base64 encode/decode
dxt b64 encode "hello world"
dxt b64 decode "aGVsbG8gd29ybGQ="
echo "pipe me" | dxt b64 encodedxt hash Hash strings
dxt hash sha256 "hello"
dxt hash md5 "hello"
echo "pipe me" | dxt hash sha512Supported: md5, sha1, sha256, sha512
dxt jwt Decode JWT tokens
dxt jwt eyJhbGciOiJIUzI1NiIs...
echo $TOKEN | dxt jwtDisplays header, payload, and expiration status. Decode only. No secrets are processed or stored.
dxt ts Timestamp conversions
dxt ts # current time
dxt ts 1700000000 # unix seconds
dxt ts 1700000000000 # unix milliseconds (auto-detected)
dxt ts "2023-11-14T22:13:20Z" # ISO stringdxt pass Generate secure passwords
dxt pass # 24-char password
dxt pass -l 32 # 32-char password
dxt pass --no-symbols # alphanumeric onlyUses crypto.randomBytes for cryptographically secure generation.
dxt url URL encode/decode
dxt url encode "hello world&foo=bar"
dxt url decode "hello%20world"
echo "encode me" | dxt url encodePipe-friendly
All commands support stdin, so you can chain them with other tools:
echo "secret" | dxt hash sha256
cat token.txt | dxt jwt
dxt uuid | dxt b64 encodeSecurity
- All processing happens locally on your machine
- No network requests, no telemetry, no analytics
- Password generation uses Node.js
crypto.randomBytes(CSPRNG) - JWT decoding is read-only. No signing, no secret handling
- No input caching or logging. All data is ephemeral
Programmatic API
import { generateUuids, base64, hash, decodeJwt, generatePassword } from 'dxkit-cli';
const [uuid] = generateUuids({ count: 1 });
const encoded = base64({ action: 'encode', input: 'hello' });
const sha = hash({ algorithm: 'sha256', input: 'hello' });
const jwt = decodeJwt({ token: '...' });
const pw = generatePassword({ length: 24, noSymbols: false });Development
git clone https://github.com/saqibameen/dxkit.git
cd dxkit
npm install
npm test # run tests
npm run build # build
npm run dev # build with watchLicense
MIT
Built with commandcode by @saqibameen
