0.0.16 • Published 3 years ago
wifi-qr v0.0.16
wifi-qr
A library and command-line utility for generating QR codes with embedded wifi credentials
Background
Wifi QR codes are readable by iOS 11+ and Android 10+ devices. The QR codes embed the network SSID, auth type, and password, making it easy to share credentials with guests, for example. Long passwords can be deployed and shared easily with this method.
Installation
npm install -g wifi-qrUsage
Providing a password via command-line argument:
wifi-qr --ssid "my network ssid" --password "my network password" --type wpa qr.pngProviding a password via stdin:
echo "my network password" > password.txt
wifi-qr --ssid "my network ssid" --type wpa qr.png < password.txtSVG and PNG output formats are supported.
Run wifi-qr --help for more information about the command-line interface.
Development
Compile Typescript:
npm run compileCheck code formatting:
npm run prettier
# or, to automatically fix formatting
npm run prettier:fix