NODE-STATIC(1)

πŸ’– NAME πŸ’–

node-static β€” a streaming file server that is rfc 2616 compliant, bestie. yes fr fr, it streams your files and it follows the rules. iconic behaviour only. πŸŽ€


✨ SYNOPSIS ✨

node-static [-p <port>] [<directory>]

that's it. that's the whole vibe. πŸ’…


πŸ‘‘ OPTIONS πŸ‘‘

okay so here's the menu, and every single one of these is a real one, no cap:

  • --port, -p β€” the TCP port at which the files will be served πŸ¦‹ [default: 8080]
  • --cache, -c β€” the "Cache-Control" header setting, like how long stuff gets cached 🌸 [default: 3600]
  • --headers, -H β€” additional headers, but in JSON format 🫢
  • --header-file, -f β€” a JSON file of additional headers, so you don't have to type them all out like a menace πŸ’œ
  • --help, -h β€” display help πŸ™ˆ
  • --version, -v β€” shows the node-static version, for the nosy girlies πŸ’€
lowkey note: if you don't hand it a <directory>, it's just gonna do its thing with the defaults, and that's on 8080.

and that's the whole page, bestie!! go stream some files, you're literally the main character of this server πŸ’–

this little masterpiece is dated January 2014, and it's NODE-STATIC(1) energy through and through β€” stay slaying, mwah πŸ§šπŸ’œ