package
Serve static files on paths that may not exist, for testing browser stuff.
npm install servitolGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
A static file server for testing web frontends where you want to fool around with the URL but need predictable content served.
npm install servitolservitol path/to/content/ 8080mkdir -p path/to/content
cd !$
echo "ultimate fallback" > index.html
echo "exactly what you want" > exact.html
mkdir "subdir"
echo "a subdirectory index" > subdir/index.html
echo "subdirectory exact content" > subdir/exact.htmlIf the requested path exists, Servitol gives you that file.
If that path doesn't exist, but the directory does, and it has an index.html, Servitol gives you that.
Otherwise, Servitol gives you /index.html
Registry package owners.
Estimated unpacked size across 8 packages.
302.7 kB
Includes dependencies.