BRFS(1)

πŸ’– brfs β€” the manual page, bestie edition πŸ’–

okay so. you know how in node you be writing fs.readFileSync() and it just... reads a file at runtime? 🫣 brfs said "not on my watch" and inlines that whole call right into your code. it's giving build-step magic, fr fr. this is the brfs(1) page, and yes we're reading it together because that's what besties do. πŸ’…


✨ SYNOPSIS ✨

brfs [File]

like. that's it. that's the whole summoning ritual. πŸŽ€


🌸 DESCRIPTION 🌸

so basically brfs takes your file, hunts down every inline fs.readFileSync() function call inside it, and inlines them β€” then prints the transformed file contents straight to stdout. slay. ✨

and here's the cute part: File can be omitted entirely, or you can literally just pass - and it'll read from stdin instead. lowkey iconic behavior if you ask me. πŸ¦‹


πŸ‘‘ SEE ALSO πŸ‘‘

  • nodejs(1) β€” go say hi to node, she's the whole reason we're here 🫢

πŸ’Œ a lil sign-off πŸ’Œ

this page is brfs(1), dated 8/4/2017, and it's been out here serving looks since then. no cap. go inline something. πŸŒˆπŸ’–


πŸ“¦ where this page comes from