Skip to content

MRGRD56/simple-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Simple HTTP Server

Usage

node ./index.js <port> <host> <responseBody> <responseStatus>

All the arguments are optional

Argument Description Default value
port The port of the server 9999
host The host of the server 0.0.0.0
responseBody The content returned by the server Hello, world!
responseStatus The status code returned by the server 200

Examples

node ./index.js 80 localhost "Lorem ipsum" 403

node ./index.js 8080 192.168.0.123

node ./index.js 81

Releases

No releases published

Packages

No packages published