Monday, June 9, 2025

Cross-Platform, Cli App To Carry out Numerous Operations On String




sttr is command line software program that means that you can shortly run varied transformation operations on the string.

// With enter immediate
sttr

// Direct enter
sttr md5 "Hi there World"

// File enter
sttr md5 file.textual content
sttr base64-encode picture.jpg

// Studying from completely different processor like cat, curl, printf and so on..
echo "Hi there World" | sttr md5
cat file.txt | sttr md5

// Writing output to a file
sttr yaml-json file.yaml > file-output.json

Fast set up

You’ll be able to run the under curl to put in it someplace in your PATH for simple use. Ideally it will likely be put in at ./bin folder

curl -sfL https://uncooked.githubusercontent.com/abhimanyu003/sttr/principal/set up.sh | sh

Webi

MacOS / Linux

curl -sS https://webi.sh/sttr | sh

Home windows

curl.exe https://webi.ms/sttr | powershell

See right here

Homebrew

If you’re on macOS and utilizing Homebrew, you’ll be able to set up sttr with the next:

brew faucet abhimanyu003/sttr
brew set up sttr

Snap

sudo snap set up sttr

Arch Linux

yay -S sttr-bin

Scoop

scoop bucket add sttr https://github.com/abhimanyu003/scoop-bucket.git
scoop set up sttr

Go

go set up github.com/abhimanyu003/sttr@newest

Manually

Obtain the pre-compiled binaries from the Launch! web page and replica them to the specified location.

  • After set up merely run sttr command.
// For interactive menu
sttr
// Present your enter
// Press two enter to open operation menu
// Press `/` to filter varied operations.
// May also press UP-Down arrows choose varied operations.
sttr -h

// Instance
sttr zeropad -h
sttr md5 -h

  • Working with recordsdata enter.
sttr {command-name} {filename}

sttr base64-encode picture.jpg
sttr md5 file.txt
sttr md-html Readme.md

sttr yaml-json file.yaml > file-output.json
  • Taking enter from different command.
curl https: //jsonplaceholder.typicode.com/customers | sttr json-yaml
  • Chaining the completely different processor.
sttr md5 whats up | sttr base64-encode

echo "Hi there World" | sttr base64-encode | sttr md5

Encode/Decode

  • [x] ascii85-encode – Encode your textual content to ascii85
  • [x] ascii85-decode – Decode your ascii85 textual content
  • [x] base32-decode – Decode your base32 textual content
  • [x] base32-encode – Encode your textual content to base32
  • [x] base64-decode – Decode your base64 textual content
  • [x] base64-encode – Encode your textual content to base64
  • [x] base85-encode – Encode your textual content to base85
  • [x] base85-decode – Decode your base85 textual content
  • [x] base64url-decode – Decode your base64 url
  • [x] base64url-encode – Encode your textual content to url
  • [x] html-decode – Unescape your HTML
  • [x] html-encode – Escape your HTML
  • [x] rot13-encode – Encode your textual content to ROT13
  • [x] url-decode – Decode URL entities
  • [x] url-encode – Encode URL entities

Hash

  • [x] bcrypt – Get the Bcrypt hash of your textual content
  • [x] md5 – Get the MD5 checksum of your textual content
  • [x] sha1 – Get the SHA1 checksum of your textual content
  • [x] sha256 – Get the SHA256 checksum of your textual content
  • [x] sha512 – Get the SHA512 checksum of your textual content

String

  • [x] camel – Rework your textual content to CamelCase
  • [x] kebab – Rework your textual content to kebab-case
  • [x] decrease – Rework your textual content to decrease case
  • [x] reverse – Reverse Textual content ( txeT esreveR )
  • [x] slug – Rework your textual content to slug-case
  • [x] snake – Rework your textual content to snake_case
  • [x] title – Rework your textual content to Title Case
  • [x] higher – Rework your textual content to UPPER CASE

Strains

  • [x] count-lines – Rely the variety of traces in your textual content
  • [x] reverse-lines – Reverse traces
  • [x] shuffle-lines – Shuffle traces randomly
  • [x] sort-lines – Kind traces alphabetically
  • [x] unique-lines – Get distinctive traces from checklist

Areas

  • [x] remove-spaces – Take away all areas + new traces
  • [x] remove-newlines – Take away all new traces

Rely

  • [x] count-chars – Discover the size of your textual content (together with areas)
  • [x] count-lines – Rely the variety of traces in your textual content
  • [x] count-words – Rely the variety of phrases in your textual content

RGB/Hex

  • [x] hex-rgb – Convert a #hex-color code to RGB
  • [x] hex-encode – Encode your textual content Hex
  • [x] hex-decode – Convert Hexadecimal to String

JSON

  • [x] json – Format your textual content as JSON
  • [x] json-escape – JSON Escape
  • [x] json-unescape – JSON Unescape
  • [x] json-yaml – Convert JSON to YAML textual content
  • [x] json-msgpack – Convert JSON to MSGPACK
  • [x] msgpack-json – Convert MSGPACK to JSON

YAML

  • [x] yaml-json – Convert YAML to JSON textual content

Markdown

  • [x] markdown-html – Convert Markdown to HTML

Extract

  • [x] extract-emails – Extract emails from given textual content
  • [x] extract-ip – Extract IPv4 and IPv6 out of your textual content
  • [x] extract-urls – Extract URls your textual content ( we do not do ping examine )

Different

  • [x] escape-quotes – escape single and double quotes out of your textual content
  • [x] completion – generate the autocompletion script for the desired shell
  • [x] interactive – Use sttr in interactive mode
  • [x] model – Print the model of sttr
  • [x] zeropad – Pad a quantity with zeros
  • [x] and including extra….

These are the few areas the place sttr was highlighted, many because of all of you. Please be happy so as to add any blogs/movies you’ll have made that debate sttr to the checklist.



Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles

PHP Code Snippets Powered By : XYZScripts.com