Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Tunnel your local HTTP(s) server to the world! Powered by Cloudflare Quick Tunnels.
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.
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.
FAQs
Tunnel your local HTTP(s) server to the world! Powered by Cloudflare Quick Tunnels.
The npm package untun receives a total of 762,158 weekly downloads. As such, untun popularity was classified as popular.
We found that untun demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.