1.0.9 • Published 8 years ago

imgserver v1.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

ImgServer

A small js library for serving static files

Supported types:

  • .html
  • .txt
  • .css
  • .gif
  • .jpg
  • .png
  • .svg
  • .js

Example:

var server = new imgServer({
    dir: filePath,
    port: 3000
});
server.start();

Or, if you want to map multiple locations:

var server = new imgServer({
    map: [
        {
            from: '/t',
            to: filePath1
        },
        {
            from: '/m',
            to: filePath2
        }
    ],
    port: 3000
});
server.start();
1.0.9

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago