mini-static 0.16.0

A secure, async static file server with streaming, traversal protection, and connection limits.
Documentation
1
2
3
4
5
// A stand-in for a build tool's output bundle — imagine this shipped alongside a
// pre-gzipped `bundle.js.gz` produced by the same build step. mini-static serves the
// `.gz` sidecar directly to any client whose `Accept-Encoding` says it accepts gzip,
// skipping on-the-fly compression entirely.
console.log("bundle loaded");