JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q56107F
  • 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 Build Status

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

WIP

  • Public, Free and Predefined provider https://tnlfy.live
  • 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

Every contribute is well accepted and the main goal of the project is to provide a solid software.

PRs are welcome and we are writing down some guidelines and code of conducts along with core code and documentation.

We hope to provode a comphensive documentation as we go through the first release we'll do as we reach a first releasable version v0.1