@anzerr/static.http
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

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

Package Sidebar

Install

npm i @anzerr/static.http

Weekly Downloads

11

Version

1.0.14

License

MIT

Unpacked Size

5.78 kB

Total Files

7

Last publish

Collaborators

  • anzerr