New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

servitol

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

servitol

Serve static files on paths that may not exist, for testing browser stuff.

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Servitol

A static file server for testing web frontends where you want to fool around with the URL but need predictable content served.

Install

npm install servitol

Run

servitol path/to/content/ 8080

How Servitol serves it all

mkdir -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.html

If 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

FAQs

Package last updated on 08 May 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc