Skip to content

kk1fff/dir-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dir Server

Serve current directory statically.

Install

dirserver is published to npm. As a shell command, you can install to system globally through

$ npm install dir-server -g

And you will get dirserver command.

Usage

To make current directory available on the Internet, just type dirserver and a server will open to provide content in this directory.

$ dirserver

Default port is 8080, one can use broswer to open http://localhost:8080/ to get resource.

Configure

The website can be configured using setting.json in the working directory, it is an JSON formetted file that currently provides setting of port, cache policy, additional mime. An example is provided:

{
  "cache_allowed": true,
  "mime": {
    "imjpeg" : ["jpg"]
  }
}

About

NodeJS static server that serve current directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published