meowgorithm / sttr

cross-platform, cli app to perform various operations on string

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sttr

sttr

sttr is command line software that allows you to quickly run various transformation operations on the string.

// With input prompt
sttr

// Direct string input
sttr -i "your string"

๐ŸŽฅ Demo

sttr demo

๐Ÿ”‹ Installation

Quick install

You can run the below curl to install it somewhere in your PATH for easy use. Ideally it will be installed at ./bin folder

curl -sfL https://raw.githubusercontent.com/abhimanyu003/sttr/main/install.sh | sh

Homebrew

If you are on macOS and using Homebrew, you can install sttr with the following:

brew tap abhimanyu003/sttr
brew install sttr

Go

go install github.com/abhimanyu003/sttr@latest

Manually

Download the pre-compiled binaries from the Release! page and copy them to the desired location.

๐Ÿ“š Guide

  • After installation simply run sttr command.
// With input prompt

sttr 
// ( Press two enter to open operation menu )

// You can also provide string directly without any prompt.
sttr -i "your string"
  • Press / to filter various operations.
  • Can also press UP-Down arrows select various operations.

๐Ÿ’ฅ Supported Operations

  • Base64 Encode
  • Base64 Decode
  • URL Encode
  • URL Decode
  • ROT13 Encode
  • String To Title
  • String To lower
  • String To UPPER
  • String To snake_case
  • String To Kebab
  • String To Slug
  • String To Camel
  • String Reverse
  • Count Number Characters
  • Count Words
  • Count Lines
  • MD5 Encode
  • SHA1 Encode
  • SHA256 Encode
  • SHA512 Encode
  • Format JSON
  • JSON To YAML
  • YAML To JSON
  • Hex To RGB
  • Sort Lines
  • and adding more....

License

MIT

About

cross-platform, cli app to perform various operations on string

License:MIT License


Languages

Language:Go 75.7%Language:Shell 24.3%