0.2.2 • Published 9 months ago

purrl v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 months ago

purrl

Installation

Install purrl as a dev dependency of your project

pnpm add -D purrl

Usage

Run purrl in your terminal or add it into your package.json scripts.

!NOTE You need to run purrl with sudo since it needs to modify the /etc/hosts file and listen to ports 80 and 443 (in case of https).

From terminal

sudo pnpm purrl localhost:3000 example.local

From package.json

{
  "scripts": {
    "start-proxy": "sudo purrl localhost:3000 example.local"
  }
}

Examples

Expose localhost to example.local

purrl localhost:3000 example.local

Now browse http://example.local in your browser to see the result.

Expose localhost to example.local with https

purrl localhost:3000 example.local --ssl

Now browse https://example.local in your browser to see the result.

Specification

USAGE
  purrl localhost:3000 example.local
  purrl localhost:3000 example.local --ssl # expose with https
  purrl --help
  purrl --version

Expose your localhost to a custom local domain

FLAGS
     [--ssl]     If passed the destination will be exposed over HTTPS [default = false]
  -h  --help     Print help information and exit
  -v  --version  Print version information and exit

ARGUMENTS
  arg1  Origin path
  arg2  Destination path
0.2.1

9 months ago

0.2.0

9 months ago

0.2.2

9 months ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago

0.5.0

11 years ago

0.1.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago