An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

### `Intro`
![GitHub Actions status | publish](https://github.com/anzerr/static.http/workflows/publish/badge.svg)

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');
});
```