serve-public
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Serve Public

Serve any folder on your device with a Public URL

Installation

Install serve-public with NPM.

Run npm install -g serve-public

Usage

Get a Public URL for any folder on your device with: serve-public --path </path/to/your/folder>

You'll see output like

Local server listening on http://localhost:3000 # This is the port the server is listening to on localhost
http://cnrsqd-ip-157-211-241-249.tunnelmole.com is forwarding to localhost:3000 # A public, plain HTTP url for your folder
https://cnrsqd-ip-157-211-241-249.tunnelmole.com is forwarding to localhost:3000 # A public HTTPS url for your folder

How it works

serve-public uses Tunnelmole under the hood to get the Public URLs. It then starts a simple Express server with a couple of middlewares.

When you hit the public URL, the request is forwarded through the tunnelmole servers to your local client, then to the express server serving up your folder.

Readme

Keywords

none

Package Sidebar

Install

npm i serve-public

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

8.97 kB

Total Files

15

Last publish

Collaborators

  • robbiecahill