Like python3 -m http.server
, but backed by http4s ember on Scala.js.
npm i -g http4s-cli
Usage: http4s [--bind <ADDRESS>] [--directory <DIRECTORY>] [<port>]
static file server, backed by http4s ember
Options and flags:
--help
Display this help text.
--version, -v
Print the version number and exit.
--bind <ADDRESS>, -b <ADDRESS>
Specify alternate bind address [default: all interfaces]
--directory <DIRECTORY>, -d <DIRECTORY>
Specify alternative directory [default: current directory]
This repo demonstrates how to publish a Scala.js app to npm using scala-cli.