CommonJS + Node.js ESM + CLI + JSON
Build a configuration.
Every choice updates the copyable output. Links beside each group explain the exact Config key, default, and runtime behavior.
Choose values, then copy one format.
Module output
Node.js CommonJS and ESM include HTTP, HTTPS-only, paired-listener, and full Config settings.
CLI output
Generates the command's HTTP flags and routes HTTPS choices to the module output.
JSON output
A serializable Config object for module code or your own storage loader.
The generator runs in the browser, but node-http-server does not. Run generated CommonJS, Node.js ESM, CLI, and JSON-based module snippets in a local Node process. Browser bundles, native browser ESM, import maps, and
file:// are not supported package runtime paths.const {Server}=require('node-http-server');
const server=new Server({
host:'127.0.0.1',
port:8080,
root:'./public'
});
server.deploy();
npm install node-http-server