1.0.1 • Published 4 years ago

localhost-listen-all v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

localhost-listen-all

A small node utility that listens to all incoming HTTP(S) requests on a specific port. Useful for stuff like testing webhooks.

Installation

npm install localhost-listen-all

Usage

HTTP

localhost-listen-all [PORT]

Where [PORT] is the port to listen on.

HTTPS

localhost-listen-all [PORT] --https

Where [PORT] is the port to listen on.

Make sure you are in a folder with server.crt and server.key as you SSL certificate.

If your cert files are in another location, specify them using

localhost-listen-all [PORT] --https --cert [PATH_TO_.crt] --key [PATH_TO_.key]