CLI: How to Start an HTTP Server in One Line
Rating: 7
npx http-server "directory"
Caveat
This requires Node to be installed.
Related Facts
- 8 CSS: Gutters [#69] Dec 13, 2021
- 7 How to Include a Subject in mailto: Links [#31] Nov 29, 2021
- 7 There Is a Browser Extension That Scans Sites for Best Practices [#67] Dec 12, 2021
- 7 CLI: Bypass Command Aliases [#213] Sep 19, 2022
- 6 CSS: You Can Now Use Variables [#29] Nov 29, 2021
30 more...
- 6 Responsive Design Mode Lets You Test Sites on Different Devices [#52] Dec 7, 2021
- 6 CSS: You Can Get Responsive Values With the clamp Function [#85] Dec 20, 2021
- 6 NPM: How to Find Out Which Dependencies Can Be Updated [#118] Jun 8, 2022
- 6 git: How to Get Commit Statistics [#126] Jun 16, 2022
- 6 You Can Use a File for Crontab [#167] Jul 31, 2022
- 6 Port 0 Is Special-Cased at the OS Level [#197] Sep 1, 2022
- 6 CLI: Delete Files With find [#212] Sep 19, 2022
- 6 Rust: Cargo Has Short Versions of Commands [#216] Oct 2, 2022
- 5 You Can Select Target Iframes in Developer Tools [#54] Dec 8, 2021
- 5 CLI: just Supports Arguments to Recipes [#83] Dec 19, 2021
- 5 You Can Use Nohup to Make Processes Not Terminate When Session Disconnects [#92] Dec 24, 2021
- 4 Emacs: You Can Fold HTML Tags With web-mode [#38] Dec 1, 2021
- 4 HTML: script Tags Have a defer Attribute [#72] Dec 14, 2021
- 4 HTML: There Is a <small> Tag [#76] Dec 16, 2021
- 4 You Can Use screen to Create Detached Processes [#94] Dec 26, 2021
- 4 TLDs Can Serve Webpages [#207] Sep 12, 2022
- 3 Unix: List Active Cron Jobs [#2] Nov 16, 2021
- 3 Jquery: You Can Create a New Element With Carots [#18] Nov 24, 2021
- 3 Jquery: How to Add a Class and ID [#20] Nov 24, 2021
- 3 Emacs: You Can Highlight Matching HTML Tags With web-mode [#35] Dec 1, 2021
- 3 CSS: How to Change the Details Summary Arrow [#45] Dec 5, 2021
- 3 HTML: You Can Nest <detail> Tags [#48] Dec 6, 2021
- 2 Jquery: How to Clear an Element [#19] Nov 24, 2021
- 2 CSS: Spaces vs Commas [#32] Nov 30, 2021
- 2 Unobtrusive Javascript [#74] Dec 15, 2021
- 2 HTML: the <html> Element Can Have a lang Attribute [#78] Dec 17, 2021
- 2 Running Processes Will Be Terminated When SSH Session Disconnects [#91] Dec 24, 2021
- 2 HTTP: Set-Cookie Header [#33] Nov 30, 2021
- 1 HTML: the <main> Tag Contains the Main Content of a Document [#47] Dec 6, 2021
- 1 HTTP Status Code 413 [#12] Nov 22, 2021