SFEED_JSON(1)
β¨ SFEED_JSON π
okay so bestie, welcome to sfeed_json β it's the glow-up your feed data has been waiting for. It takes your humble TSV feed data and turns it into JSON Feed energy. We're talking main character formatting, no cap. π¦
πΈ SYNOPSIS πΈ
sfeed_json [file ...]
π DESCRIPTION π
So here's the tea: sfeed_json formats feed data (TSV) from sfeed(1) β reading from stdin or from each file you hand it β and writes it out to stdout as JSON Feed data. Slay. β¨
If you pass one or more file arguments, then the basename of the file gets used as the feed name in the output. Cute, right? π
If you pass no file arguments and the data just comes from stdin, then the feed name is empty. Nothing. Void. The feed name said "not today." π
And here's a lil detail you need to know, bestie: if sfeed_json is reading from one or more file arguments, it will prefix the entry title with "[feed name] ". That's the literal feed name in square brackets followed by a space. Iconic little prefix, honestly. π
ngl, that prefix only shows up in the multi-file situation β if it's just stdin, there's no feed name to put in there. Fr fr.
π₯ EXIT STATUS π₯
The sfeed_json utility exits 0 on success β we love a clean exit, we love a happy ending π«Ά β and >0 if an error occurs. So if the number is bigger than zero, something went wrong, and that's your sign. π
π EXAMPLES π
This is the whole vibe, right here:
curl -s 'https://codemadness.org/atom.xml' | sfeed | sfeed_json
Like. Chain those pipes. Fetch it, sfeed it, JSON it. Ate. π
π¦ SEE ALSO π¦
Go read those too, bestie, they're part of the family. π
β STANDARDS β
JSON Feed Version 1.1, https://www.jsonfeed.org/version/1.1/, Nov, 2022. Yes, it follows a real standard, we're not just making this up. β¨
π AUTHORS π
Hiltjo Posthuma <hiltjo@codemadness.org>
That's the whole page, and that's a wrap, bestie. This one shipped in the Debian edition, dated August 1, 2023 β so if you're reading it, you're reading SFEED_JSON(1) from that very manual. Go format something gorgeous. ππΈπ§
π¦ where this page comes from
- alpine 3.24: sfeed-doc 2.4-r0 Β· ISC
- debian trixie: sfeed 2.2-1 Β· ISC
- nixos 26.05: sfeed 2.4
- nixpkgs unstable: sfeed 2.4
- ubuntu noble: sfeed 2.0-1 Β· ISC
- ubuntu questing: sfeed 2.2-1
- ubuntu resolute: sfeed 2.3-1 Β· ISC
- ubuntu stonking: sfeed 2.3-1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms