New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svrx-plugin-localtunnel

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svrx-plugin-localtunnel

localtunnel plugin for server-x

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

svrx-plugin-localtunnel

svrx plugin for localtunnel

This plugin is used to expose your local server to localtunnel.me

Usage

please confirm you have installed svrx already

Via CLI

svrx -p "localtunnel"

Via API

const svrx = require('@svrx/svrx');

svrx({
    plugins: ['localtunnel']
}).start();

With options


svrx({
    plugins: [{
        name: 'localtunnel',
        options: {
            subdomain: 'svrx'
        }
    ]
}).start();

With events

const server = svrx({
    plugins: ['localtunnel']
});
server.on('localtunnel:ready', (tunnel) => {
    console.log(`url is available at ${tunnel.url}`)
});
server.start();

Example above will prepare https://svrx.localtunnel.me for you

Options

subdomain [String]:

A string value requesting a specific subdomain on the proxy server

Subdomain is optional, localtunnel will auto create a random domain for you.

localhost [String]:

Proxy to this hostname instead of localhost

localhost is optional

host [String]:

specify host if you want to use custom localtunnel/server , or Deploy localtunnel server with docker-compose

Deafult is https://localtunnel.me

Events

localtunnel:ready

Emitted when localtunnel is ready.

params:

tunnel [Object]: localtunnel instance, see localtunnel API

localtunnel:error

Emitted when an error occurred.

params:

message [String]: error message

Keywords

FAQs

Package last updated on 30 Oct 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc