0.5.3 • Published 10 months ago
static-handler v0.5.3
static-handler
A very simple static files handler, useful for testing, debugging purpose, or whenever a very basic static file server is needed as fallback/resource.
# as CLI
npx static-handler --help
// as utility
const staticHandler = require('static-handler');
const handled = staticHandler(__dirname);
require('http').createServer((req, res) => {
// handled as static content, returns true
if (handled(req, res))
return;
// do anything else
}).listen(8080);
0.5.3
10 months ago
0.5.0
10 months ago
0.5.2
10 months ago
0.5.1
10 months ago
0.4.3
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.4.2
2 years ago
0.3.2
2 years ago
0.3.1
3 years ago
0.1.0
4 years ago
0.0.1
4 years ago
0.3.0
3 years ago
0.1.2
4 years ago
0.2.0
4 years ago
0.1.1
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.0.0
4 years ago