https://github.com/anzerr/static.http
http server for serving static files
https://github.com/anzerr/static.http
cli http nodejs static util
Last synced: 3 months ago
JSON representation
http server for serving static files
- Host: GitHub
- URL: https://github.com/anzerr/static.http
- Owner: anzerr
- License: mit
- Created: 2018-10-23T07:18:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T16:28:20.000Z (about 4 years ago)
- Last Synced: 2025-09-25T17:49:51.895Z (5 months ago)
- Topics: cli, http, nodejs, static, util
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### `Intro`

Simple file explorer in NodeJS with zero dependencies
#### `Install`
``` bash
npm install --save git+https://github.com/anzerr/static.http.git
npm install --save @anzerr/static.http
```
``` bash
git clone git+https://git@github.com/anzerr/static.http.git &&
cd static.http &&
npm link
```
### `Example`
``` bash
staticserver --port 8080 --cwd ..
```
``` javascript
const Server = require('static.http');
const type = ['json', 'html', 'index.html'];
new Server(5996, __dirname, type[1])
.on('log', console.log)
.create().then(() => {
console.log('Server started');
});
```