1.0.5 • Published 3 years ago

dbg-server v1.0.5

Weekly downloads
-
License
GPL-2.0
Repository
-
Last release
3 years ago

dbg-server

This is a very simple cli tool which exposes a plain htto server for debugging of http clients. It can be useful when creating clients which send http data and theres a need for a simple server which just sends the data to console for debugging purposes.

installation

npm i -g dbg-server

Arguments

  • -p/--port port - this sets the port the server is listening on.
  • -x/--cors - set cors headers, for use in browsers with other origin.
  • -c/--code code - needs to be a number, defines the http response code which will be used
  • -b/--body body - this defines the body which will be send back to the client, can either be a string or a json structure.

Running

dbg-server [...args]

LICENSE

this is free software licensed under GPL-2.0

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago