Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smelukov/nano-static-server
Simple static Node.JS server with no dependencies
https://github.com/smelukov/nano-static-server
Last synced: about 1 month ago
JSON representation
Simple static Node.JS server with no dependencies
- Host: GitHub
- URL: https://github.com/smelukov/nano-static-server
- Owner: smelukov
- License: mit
- Created: 2016-05-13T13:27:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-13T15:39:12.000Z (over 8 years ago)
- Last Synced: 2024-08-21T09:21:41.677Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 129 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Simple static Node.JS server with no dependencies.
- No dependencies
- Supports cache by Last-Modified###Custom config
You can specify custom config by passing `--cfg` parameter:
```bash
nano-server --cfg=./path/to/config.json
```**Default config is:**
```json
{
"host": "localhost",
"port": 8888,
"root": "public",
"cacheControl": "public",
"stubs": {
"index": "index.html",
"error": "error.html",
"notFound": "404.html"
},
"mime": {
".html": "text/html",
".js": "application/x-javascript",
".css": "text/css",
".jpg": "image/jpeg",
".png": "image/png",
"default": "text/plain"
}
}```
I think that there is no need to explain ;)*todo: tests*