JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q55993F
  • License MIT

A simple tool that exposes static folders from your local machine to the web

Package Exports

  • @mikesposito/tunnelify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mikesposito/tunnelify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tunnelify

GitHub license npm version npm downloads Build Status PRs Welcome

A simple tool that exposes static folders from your local machine to the web

Concept Image

Table of Contents

Features

Released

  • Expose a local directory to an HTTP port
  • Create a remotely accesible url
  • Expose your local tunnelify server on the remote url
  • Create your custom remote tunnel provider
  • Public, Free and Predefined provider https://tnlfy.live

WIP

  • More sophisticated Tunnel management for the Provider
  • Better Provider configuration for a more customizable experience

Install

With npm, for global usage:

$ npm install -g @mikesposito/tunnelify

With npm, for usage in another project:

$ npm install --save @mikesposito/tunnelify

# OR FOR DEVELOPMENT ONLY:
$ npm install --save-dev @mikesposito/tunnelify

Usage

With Command Line

Tunnelify only requires an absolute or relative path of the directory containing files you want to expose:

$ tunnelify <PATH>

Custom Port

You can use -p <PORT> to use a custom port number for the local server:

$ tunnelify -p <PORT> <PATH>

Custom Provider

You can use -r <REMOTE_PROVIDER_URL> to use a different Tunnelify Provider other than the public, free and default https://tnlfy.live

$ tunnelify -r <REMOTE_PROVIDER_URL> <PATH>

From another application

Tunnelify can also be used from other javascript applications. You can use the main Tunnelify class to instantiate a tunnel:

const tunnelify = new Tunnelify({
  src: "/path/to/files",
  flags: {
    remote: `https://tnlfy.live`, 
    port: 32000,
    silent: false | true,
    verbose: false | true
  }
});

tunnelify.run();

Examples

Minimal:

$ tunnelify ./my-folder

With custom port:

$ tunnelify -p 3000 ./my-folder

With custom Tunnelify Provider:

$ tunnelify -r https://my-domain.com

Use a Custom Remote Domain

You can create you own remote Tunnelify Provider to expose files on your private domains.

1. Install Tunnelify Provider

$ npm install -g @mikesposito/tunnelify-provider

2. Run Tunnelify Provider

$ tunnelify-provider -h <HOSTNAME>

Where <HOSTNAME> should be your domain.

Example:

$ tunnelify-provider -h my-domain.com

By default, tunnelify-provider will listen on port 9410, but you can shoose a different port with -p:

$ tunnelify-provider -h my-domain.com -p 8080

Contributing

The main purpose of this repository is to continue evolving tunnelify core, making it faster and easier to use. Development of tunnelify happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving tunnelify.

Code of Conduct

tunnelify has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to tunnelify.