
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@types/localtunnel
Advanced tools
TypeScript definitions for localtunnel
npm install --save @types/localtunnel
This package contains type definitions for localtunnel (https://github.com/localtunnel/localtunnel).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/localtunnel.
/// <reference types="node" />
import { EventEmitter } from "events";
export = localtunnel;
declare function localtunnel(
port: number | localtunnel.TunnelConfig & { port: number },
): Promise<localtunnel.Tunnel>;
declare function localtunnel(
opts: localtunnel.TunnelConfig & { port: number },
callback: localtunnel.TunnelCallback,
): localtunnel.Tunnel;
declare function localtunnel(
port: number,
opts: localtunnel.TunnelConfig,
): Promise<localtunnel.Tunnel>;
declare function localtunnel(
port: number,
opts: localtunnel.TunnelConfig,
callback: localtunnel.TunnelCallback,
): localtunnel.Tunnel;
declare namespace localtunnel {
type TunnelCallback = (
err?: string,
tunnel?: Tunnel,
) => void;
interface TunnelConfig {
subdomain?: string | undefined;
host?: string | undefined;
local_host?: string | undefined;
local_https?: boolean | undefined;
local_cert?: string | undefined;
local_key?: string | undefined;
local_ca?: string | undefined;
allow_invalid_cert?: boolean | undefined;
}
interface Tunnel extends EventEmitter {
url: string;
tunnelCluster: TunnelCluster;
open(cb: ((err: string) => void) | (() => void)): void;
close(): void;
}
interface TunnelCluster extends EventEmitter {
open(): void;
}
}
These definitions were written by Vladyslav Khrapov, and Noam Alffasy.
FAQs
TypeScript definitions for localtunnel
The npm package @types/localtunnel receives a total of 50,183 weekly downloads. As such, @types/localtunnel popularity was classified as popular.
We found that @types/localtunnel demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.