1.0.0 • Published 6 months ago

server4test v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 months ago

server4test

server for test

main goal

serve static files and a bit plus.

usage

npm install -g server4test

server4test

config

server4test reads the config from server4test-config.yaml or server4test-config.json and merges with local-config.yaml or local-config.json.

The config format is:

server4test:
  port: 8080
  verbose: true
  serve-content: # see https://www.npmjs.com/package/serve-content
    allowAllExts: false
    allowedExts: 
      - png        
      - jpg
      - svg
      - html
      - jade
  base-url: '' # base URL
  echo: false # in console server
  server4test-directory: false # serves the folder file list
  local-file-repo: # fast way to save status to files
    enabled: false # enable fast way
    delay: 200 # set an aditional delay to the responses
    directory: local-file-repo # directory where save files 
    readRequest: { method: 'get', path: '/file-read' }
    writeRequest: { method: 'get', path: '/file-write' }
    deleteRequest: { method: 'get', path: '/file-delete' }
1.0.0

6 months ago

0.9.2

6 months ago

0.8.7

2 years ago

0.8.5

3 years ago

0.8.6

3 years ago

0.8.3

4 years ago

0.8.1

4 years ago

0.8.2

4 years ago

0.8.0

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.1.1

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago