jstunnel
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

JSTunnel - secure tunnels to localhost

NPM Version Package License

Table of Contents

Description

JsTunnel provides unique public URLs allowing you to easily share a web service on your local development machine with the world through a secure tls tunnel.

Installation

Globally via npm

npm install -g jstunnel

Running on-demand:

npx jstunnel [options]

Usage

Start a webserver on some local port (e.g. 3000) and use the cli to request a tunnel to your local server.

example: http tunnel

npx jstunnel -p 3000

example: tcp tunnel

npx jstunnel -p 5432 -t tcp

example: print help

npx jstunnel --help

Custom subdomain

example:

npx jstunnel -p 3000 -s subdomain

Serving local directory

example:

npx jstunnel --directory ./

Password protection

example: basic auth

npx jstunnel -p 3000 --auth username:password

example: include path

npx jstunnel -p 3000 --auth user:pass:+/private

example: exclude path

npx jstunnel -p 3000 --auth user:pass:-/public

Web interface

example: enable

npx jstunnel -p 3000 --web

example: disable

npx jstunnel -p 3000 --web false

HTTP logs

example: raw

npx jstunnel -p 3000 --log raw

example: compact

npx jstunnel -p 3000 --log compact

example: combined

npx jstunnel -p 3000 --log combined

example: body limiter

npx jstunnel -p 3000 --log [type]:200

example: disable

npx jstunnel -p 3000 --log false

Sponsored by

Your stars on GitHub

License

MIT

Package Sidebar

Install

npm i jstunnel

Homepage

jstunnel.com

Weekly Downloads

3

Version

0.1.2

License

MIT

Unpacked Size

110 kB

Total Files

34

Last publish

Collaborators

  • svtslv