0.7.2 • Published 5 months ago

@faulpeltz/dertunnel v0.7.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

DerTunnel client

A client CLI and library for https://github.com/faulpeltz/dertunnel

Intended for creating public tunnel endpoints from code for e.g. running integration tests.

Using the library

From JS/TS just call connectTunnel() with a token created in the server admin UI.

import {} from "@faulpeltz/dertunnel";

let tunnelEndpoint = "";
const closeTunnel = await connectTunnel({
    clientToken: "YOURTUNNELTOKEN", // the token already contains the server url and credentials but can be overridden
    endpointPrefix: "my-test", // a prefix for the endpoint name (valid DNS name)
    waitForInitialConnection: true, // connectTunnel returns when connected, with the endpoint set
    onConnected: (ep) => tunnelEndpoint = ep,
});

// call closeTunnel() do remove the endpoint when done

Using the CLI

The package also includes the CLI client - to forward local port 4000 to an endpoint called 'myendpoint' run

npx @faulpeltz/dertunnel myendpoint 4000

License

(c) faulpeltz MIT

0.6.23

7 months ago

0.7.2

5 months ago

0.7.1

6 months ago

0.7.0

7 months ago

0.6.10

1 year ago

0.6.7

2 years ago

0.6.6

2 years ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.0

2 years ago

0.4.9

2 years ago

0.5.0

2 years ago

0.4.6

3 years ago

0.4.2

3 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago