Examples
Examples
Encode
Base64
dtx encode -t b64 -s user:password
Output: dXNlcjpwYXNzd29yZA==
Decode
Base64
dtx decode -t b64 -s dXNlcjpwYXNzd29yZA==
Output: user:password
Generate
UUID
dtx generate -t uuid -n 3
Output:
1c973675-285c-4aa2-9225-0add790b3ecd
e65bbb03-70e7-4d3d-a72e-d76cec3a383a
7c426a9f-467b-4838-accd-65cf406a6c0d
API
GET
dtx api -t get -s "https://jsonplaceholder.typicode.com/posts/2"
Output:
{
"body": "est rerum tempore vitae\nsequi sint nihil reprehenderit dolor beatae ea dolores neque\nfugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis\nqui aperiam non debitis possimus qui neque nisi nulla",
"id": 2,
"title": "qui est esse",
"userId": 1
}