1.0.2 • Published 4 years ago

qr-serve v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

npm.io

Assuming you would like to serve a static site, single page application or just a static file (no matter if on your device or on the local network), this package is just the right choice for you.

Highlights

  • CLI utility
  • Ability to serve SPA files
  • Ability to query LAN IP
  • Ability to transform IP into QR Codes and display on terminal
  • Support for changing QR Code size and color

Install

Install inside your project's directory and just run npx qr-serve.

npm install qr-serve --save
npx qr-serve

Install the package globally.

npm install qr-serve -g

Once that's done, you can run this command inside your project's directory...

qr-serve

...or specify which folder you want to serve:

qr-serve folder_name

Usage

Example

You can use qr-serve to serve static site.

qr-serve

npm.io

Custom colors

Usage: qr-serve --qr-color [options] Colors Options:

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white

Example

qr-serve --qr-color green

npm.io

Custom size

Usage: qr-serve --qr-size [options] Size Options: it should be number, in 2-40

example npm.io

License

MIT