BSQR
Simple little script that runs browser-sync
& displays a QR code with the external URL.
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# oryarn 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.