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

prefix Prepend text to every line

Aa Text
Input0 chars
Output0 chars

Flags

--text string default:

Examples

Turn plain lines into a bullet list

Usage
"Buy milk
Walk dog
Write code" | prefix --text=- 

Add 'RE: ' prefix to generate reply subject lines

Usage
"Meeting cancelled
New deadline Friday
Budget approved" | prefix --text=RE: 

Add Markdown blockquote markers for quoting text

Usage
"This is important context.
Please keep in mind.
For referenc..." | prefix --text=> 
View source
(input, opts = {})=>{
                const pfx = opts.text || "";
                return input.split("\n").map((l)=>pfx + l).join("\n");
            }