Socket
Book a DemoInstallSign in
Socket

ctun

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ctun

Tunnel your local HTTP(s) server to the world! Powered by Cloudflare Quick Tunnels.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
4
-20%
Maintainers
1
Weekly downloads
 
Created
Source

logo

A script create a tunnel to your localhost use Cloudflare Argo Tunnel

NPM Version NPM Downloads Minizip Contributors License

Usage (CLI)

Globally run tunnel with npx:

npx ctun@latest --url http://localhost:3000

Use npx ctun --help for more usage info.

Result

ads

Usage (API)

Install package:

# npm
npm install ctun

# yarn
yarn add ctun

# pnpm
pnpm install ctun

Import:

// ESM
import { startTunnel } from "ctun";

Start tunnel:

const tunnel = await startTunnel({ port: 3000 });

Options

url

  • Default: {protocol}://{hostname}:{port}

The local server URL to tunnel.

port

  • Default: 3000

The local server PORT (only effective if url is not provided).

hostname

  • Default: localhost

The local server hostname (only effective if url is not provided).

protocol

  • Default: http

The local server protocol (only effective if url is not provided).

verifyTLS

  • Default: false

Verify local server TLS certificate.

License

Cloudflared integration based on a fork of JacobLinCool/node-cloudflared

Your installation of cloudflared software constitutes a symbol of your signature indicating that you accept the terms of the Cloudflare License, Terms and Privacy Policy.

Keywords

Tunnel

FAQs

Package last updated on 13 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts