cwervo / bsqr

A little dev server that spits out the QR code for a Browser Sync external server

Home Page:https://github.com/cwervo/bsqr#readme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BSQR

Simple little script that runs browser-sync & displays a QR code with the external URL.

BSQR desktop to iPhone QR scan usage GIF

Installation

To run once-in-a-while use:

npx bsqr

If you'll need it a lot install it locally with:

npm install -g bsqr
# or
yarn global add bsqr

Options

Name Syntax Default Description
port -p, --port <number> 3000 Port number to use
server -s, --server <path> . (current directory) Run a Local server (uses your cwd as the web root) [BrowserSync Option]
noServer -ns, --no-server N/A Stop the server from running, useful if you have your own BrowserSync instance & just want the QR code
big -b, --big N/A (so, small) Use a big QR code

Testing

Run:

./index.js -s examples/simple

to test basic functionality works.

About

A little dev server that spits out the QR code for a Browser Sync external server

https://github.com/cwervo/bsqr#readme


Languages

Language:JavaScript 100.0%