pipr.tools
Pipes
Clean Email Strip formatting from pasted email for clean plain text Clean AI Output Clean plain text from ChatGPT or AI output Decode & Format JWT Decode a JWT and pretty-print header and payload Word Frequency Count word frequency in text

suffix Append text to every line

Aa Text
Input0 chars
Output0 chars

Flags

--text string default:

Examples

Append semicolons to import statements

Usage
"import React
import useState
import useEffect" | suffix --text=;

Append a domain to usernames to make email addresses

Usage
"alice
bob
carol
dave" | suffix [email protected]

Add a price suffix to product names for a quick list

Usage
"Widget Pro
Gadget Plus
Tool Basic" | suffix --text= — $9.99
View source
(input, opts = {})=>{
                const sfx = opts.text || "";
                return input.split("\n").map((l)=>l + sfx).join("\n");
            }