0.0.4 • Published 1 year ago

serverok v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Serverok

Serve your files/folders locally or over a network.

How Does It Work?

It uses ngrok-javascript to create a tunnel to your localhost.

There will be an interface where you can choose which file/folder you want to share.

A .zip file will be created when you want to share a folder instead of a file so you don't have to compress it beforehand (although it is recommended for you to just zip it yourself)

Install

npm install -g serverok

Authentication

serverok auth --token [your_auth_token]

To get your auth token, first create and login to your ngrok account

Without passing the --token option, a prompt will be created to enter your auth token.

Serve Your Files

serverok serve [path]

You can also pass these options, for example:

serverok serve <path> --port [number] --interface-port [number]
  • --port : the port that will be forwarded and used to download your file. (default: 3004)
  • --interface-port : the port that will be used for the interface. (default: 3000)

Preview

interface preview

Usage

For more information about the commands

serverok help