1.0.14 • Published 2 years ago

@anzerr/static.http v1.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Intro

GitHub Actions status | publish

Simple file explorer in NodeJS with zero dependencies

Install

npm install --save git+https://github.com/anzerr/static.http.git
npm install --save @anzerr/static.http
git clone git+https://git@github.com/anzerr/static.http.git &&
cd static.http &&
npm link

Example

staticserver --port 8080 --cwd ..
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');
	});