jstunnel

Secure tunnels to localhost

Usage no npm install needed!

<script type="module">
  import jstunnel from 'https://cdn.skypack.dev/jstunnel';
</script>

README

JSTunnel

NPM Version Package License

Table of Contents

Description

Secure tunnels to localhost

Installation

Globally via npm

npm install -g jstunnel

Running on-demand:

npx jstunnel [options]

Examples

npx jstunnel -p 3000 -s subdomain
npx jstunnel -p 5432 -t tcp
npx jstunnel --help
    'usage: jstunnel [options]',
    '',
    'options:',
    '  -p, --port           Your port           [required]',
    '      --host           Your host           [localhost]',
    '  -t  --type           Http or tcp         [http]',
    '  -s, --subdomain      Subdomain           [random]',
    '      --apiUrl         Api url             [default]',
    '      --authToken      Auth token          [null]',
    '',
    '  -h, --help           Print this list and exit',
    '  -v, --version        Print the version and exit.',
    '',
    'env:',
    '  TUNNEL_CLIENT_AUTH_TOKEN',

License

MIT