# STR ## Visão geral O módulo `str` fornece transformações locais de strings e utilitários de codificação para fluxos de trabalho cotidianos no terminal. ## Comandos da CLI ```bash brutils str slug --text "Hello Cool World" brutils str case --text "my cool variable" --to camel brutils str trim --text " hello world " brutils str truncate --text "hello world" --max 8 --suffix "..." brutils str replace --text "hello 123" --from "\d+" --with "X" --regex brutils str normalize --text "Café" brutils str remove-accents --text "résumé" brutils str pad --text "42" --length 5 --side left brutils str extract "\[(.*?)\]" --text "[one] [two]" --regex brutils str base64 --text "hello" --mode encode brutils str urlencode --text "hello world" --mode encode brutils str html --text "ok" --mode encode brutils str leven "kitten" "sitting" ``` ## Ações | Ação | Uso | Descrição | | ---------------- | ---------------------------------------------------------------------------- | -------------------------------------------------------- | | `slug` | `brutils str slug --text ` | Converte texto em um slug adequado para URLs. | | `case` | `brutils str case --text --to