3 ms·
> (maybe even Windows might ship with Python nowadays?) Windows doesn't ship with Python, but it does have a silly thing where if you type python in a command
by WorldMaker 2y ago
> (maybe even Windows might ship with Python nowadays?)
Windows doesn't ship with Python, but it does have a silly thing where if you type python in a command shell of your choice it will try to auto-install python. (When it works it is kind of magic, when it doesn't work it's a pain to debug the PATH problem.)
It's not exactly a one-liner, but in an off-the-shelf Windows install it is a short script to create a simple static file web server inside PowerShell.
Also there are npm and deno packages/CLIs that are easy to install/run for one-liners if you want to install something more "web native" than Python. `npx http-server` is an easy one-liner with any recent Node install.