Skip to content

A very small node.js webserver for static content. The sole purpose of this project is to use it as a base-template for other projects.

Notifications You must be signed in to change notification settings

maze-le/node-small-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a very small node.js Webserver for static file-requests.

It serves the content of the 'static'-directory upon request, or gives appropriate error messages in 'plain/text'. There is no caching implemented whatsoever. This Project can be used as a base for further development.

The characters of the request-pathname are transformed to the lowercase-representation.

The 'path'-module prevents directory-traversal attacks.


Have fun!

About

A very small node.js webserver for static content. The sole purpose of this project is to use it as a base-template for other projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published