![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | bin/ | a year ago | - | |
![]() | dist/ | a year ago | - | |
![]() | LICENSE | a year ago | 2.2K | |
![]() | README.md | a year ago | 3.3K | 595aea1 more query options + view options [كارل مبارك] |
![]() | package.json | a year ago | 1.6K | afd0ccc remove unused [كارل مبارك] |
Tunnel your local HTTP(s) server to the world!
Powered by 🔥 Cloudflare Quick Tunnels and used by 👂 unjs/listhen.
Globally run tunnel with npx
:
npx untun@latest tunnel http://localhost:3000
◐ Starting cloudflared tunnel to http://localhost:3000
ℹ Waiting for tunnel URL...
✔ Tunnel ready at https://unjs-is-awesome.trycloudflare.com
Use npx untun tunnel --help
for more usage info.
Install package:
# npm
npm install untun
# yarn
yarn add untun
# pnpm
pnpm install untun
Import:
// ESM
import { startTunnel } from "untun";
// CommonJS
const { startTunnel } = require("untun");
Start tunnel:
const tunnel = await startTunnel({ port: 3000 });
url
{protocol}://{hostname}:{port}
The local server URL to tunnel.
port
3000
The local server PORT (only effective if url
is not provided).
hostname
localhost
The local server hostname (only effective if url
is not provided).
protocol
http
The local server protocol (only effective if url
is not provided).
verifyTLS
false
Verify local server TLS certificate.
acceptCloudflareNotice
false
UNTUN_ACCEPT_CLOUDFLARE_NOTICE
Accept cloudflare TOS by default.
corepack enable
pnpm install
pnpm dev
Made with 💛
Published under MIT 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.