lines

Format

Converts an array to newline-separated plain text, one item per line. Non-string items are JSON-serialised. Sets the Content-Type to text/plain.

Syntaxlines

Use cases

Use caseDescriptionURL
Repo names one per lineOutput repo names line-by-line for piping into grep, xargs, or a shell loop.https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|pluck:name|sort|lines
Grep-friendly post titlesEmit one title per line so you can pipe the output into grep or fzf.https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/posts|pluck:title|lines
Email list per lineOne email address per line, ready for a shell script or mail merge.https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/users|pluck:email|lines
Newline-delimited numbersConvert a number array to newline-separated text for wc -l counting.https://httpip.es/api/pipe/echo:[1,2,3,4,5]|lines

All commands