6 releases (2 stable)

1.0.1 May 3, 2023
0.1.7 Apr 10, 2023
0.1.4 Jan 14, 2023
0.1.3 Dec 28, 2022

#1218 in Command line utilities

MIT license

1MB

LiQR CLI

Have you ever used your phone or tablet to access a web app running on live-server?
If so, you probably went through the tedious process of:

  • Figuring out your local IP
  • Typing it into your mobile browser
  • Realizing you made a mistake
  • Typing it into your mobile browser again
  • Finally accessing your app

LiQR (pronounced 'liquor') fixes this problem by generating a QR code in your terminal that links to your live server.

Animated GIF making a demonstration of LiQR

Installation

Install using cargo:

cargo install liqr

Usage

To generate a QR code at [local_ip]:[port]:

liqr [port]

The default port is 5500 Example: liqr 3000https://localhost:3000

To create a QR code for [local_ip]:[port][route]:

liqr [port] -r [route]

Example: liqr 3000 -r /api/usershttps://localhost:3000/api/users

To create a general QR code for [url]:

liqr -u [url]

Example: liqr -u https://google.comhttps://google.com

Dependencies

~3–13MB
~127K SLoC