Chain tools together to build powerful text transforms.
$ html-to-text | strip-invisible | normalize-quotes | trim-lines | squeeze Clean AI Output Clean plain text from ChatGPT or AI output $ strip-ai-slop | normalize-quotes | strip-markdown Clean HTML to Text Readable plain text from raw HTML $ html-to-text | trim-lines | squeeze Transliterate to Slug Convert Unicode text to ASCII and create a URL slug $ transliterate | slugify Split, Sort & Deduplicate Clean sorted list from comma-separated values $ split --on=, | sort-lines | unique-lines Lowercase, Sort & Deduplicate Case-normalized sorted unique list $ lowercase | sort-lines | unique-lines Strip Comment Lines Clean text with comment lines removed $ grep --invert=true --pattern=^# | trim-lines HTML to Plain Text Plain text from HTML-encoded content $ html-decode | html-to-text Sort & Deduplicate Sorted unique list of lines $ sort-lines | unique-lines Trim & Clean Clean text with no extra whitespace $ trim-lines | squeeze Remove HTML Tags Plain text with HTML tags removed $ regex-replace --pattern=<[^>]+> --replacement= | squeeze $ jwt-decode | json-format Decode Base64 to JSON Readable JSON from Base64-encoded data $ base64-decode | json-format Minify & Encode JSON Base64-encoded minified JSON $ json-minify | base64-encode Base64 Encode Encode text as Base64 $ base64-encode URL Encode Encode text for safe use in URLs $ url-encode $ lowercase | split --on= | sort-lines | count Fit Context Window Clean HTML and truncate to fit an LLM token budget $ html-to-text | squeeze | token-truncate --max=4096 Count Markdown Words Count words in Markdown content $ md-to-html | html-to-text | wc HTML Word Frequency Count word frequency in HTML content $ html-to-text | word-freq Clean & Count Text Line and word counts for cleaned text $ trim-lines | squeeze | wc Character Stats Character, word, and line counts $ wc $ grep --pattern=[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} Find Unique Errors Find unique error lines in logs $ grep --pattern=error | sort-lines | unique-lines Extract AI Code Numbered code blocks from AI responses $ extract-codeblocks | number-lines Extract & Sort Numbers Sorted list of all numbers found in text $ regex-extract --pattern=\d+ | sort-lines --numeric=true Extract Unique Links Extract unique URLs from text $ grep --pattern=https?:// | unique-lines Extract URLs Extract URLs from text $ grep --pattern=https?://[^\s]+ Extract Unique Email Addresses Extract unique email addresses from text $ regex-extract --pattern=[\w.]+@[\w.]+ | unique-lines $ json-to-csv | csv-to-table Flatten & Sort JSON Sorted dot-notation view of nested JSON $ json-flatten | sort-lines Query & Format JSON Formatted JSON value from a nested path $ json-query --path=data.users | json-format Number Lines Sorted, numbered unique lines $ sort-lines | unique-lines | number-lines Reverse & Number Numbered lines in reverse order $ reverse-lines | number-lines Reverse Sort & Number Numbered lines in reverse-sorted order $ sort-lines --reverse=true | number-lines Markdown Table GitHub Markdown table from CSV data $ csv-to-md-table