1.0.9 • Published 6 years ago

imgserver v1.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
6 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

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago