
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
tiny-http-server
Advanced tools
A tiny, zero configuration HTTP server to serve static content from command line.
This is a command line tool so it is recommended to install grobally, via NPM:
$ npm install -g tiny-http-server
Serve a text "ok" with status code 200 on port 3333.
$ tiny-http-server -p 3333 -s 200 -b "ok"
404 not found or 503 service unavailable.
$ tiny-http-server -p 4444 -s 404 -b "notfound"
$ tiny-http-server -p 5555 -s 503 -b "unavailable"
You can also specify content type using -c option.
$ tiny-http-server -p 6666 -s 200 -b "<html><title>Hello</title><body>Hi there!</body></html>" -c "text/html"
Even possible to give a path to a file which you want to serve its content as body.
$ echo '<html><title>Hello</title><body>Hi there!</body></html>' > index.html
$ tiny-http-server -p 7777 -s 200 -f index.html -c "text/html"
Usage: tiny-http-server [options]
Options:
-h, --help output usage information
-p, --port [num] port number the server listen to
-s, --status [code] http status code
-b, --body [content] http body content
-c, --content-type [value] Content-Type header value
-f, --file [path] file to serve as http body content
MIT
FAQs
A tiny http server for command line.
We found that tiny-http-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.