1.7.2 • Published 6 years ago

static-resource-server v1.7.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

static-resource-server

  • return the correct mime type by the file extension
  • Gzip compressed before returning
  • support Content-Range header
  • provide caching

Getting started

As a cli tool

install

npm i static-resource-server -g

use

static-resource-server --port 8080 --hostname 127.0.0.2 --root /usr

options

--help                     output usage information
-V, --version              output the version number
-P, --port <n>             the port to listen to for incoming HTTP 
-H, --hostname <n>         the host name 
-R, --root <n>             the root directory of static resources

As a node module

install

npm i static-resource-server

use

const Server = require('static-resource-server');
const server = new Server({
  root: '/',                 // optional
  port: 521,                 // optional
  hostname: '127.0.0.2',     // optional
});
 
server.start()
1.7.2

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.5.1

6 years ago

1.4.1

6 years ago

1.3.1

6 years ago

1.2.1

6 years ago

1.1.1

6 years ago

1.0.1

6 years ago