https://github.com/mdlayher/wifiqr
Package wifiqr implements support for generating WiFi QR codes. MIT Licensed.
https://github.com/mdlayher/wifiqr
Last synced: 3 months ago
JSON representation
Package wifiqr implements support for generating WiFi QR codes. MIT Licensed.
- Host: GitHub
- URL: https://github.com/mdlayher/wifiqr
- Owner: mdlayher
- License: mit
- Created: 2023-07-22T01:20:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T04:00:33.000Z (9 months ago)
- Last Synced: 2025-03-18T10:21:20.765Z (4 months ago)
- Language: Go
- Size: 28.3 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# wifiqr [](https://github.com/mdlayher/wifiqr/actions) [](https://pkg.go.dev/github.com/mdlayher/wifiqr) [](https://goreportcard.com/report/github.com/mdlayher/wifiqr)
Package `wifiqr` implements support for generating WiFi QR codes. MIT Licensed.
## Example
Generate a QR code image and redirect stdout to create a PNG file.
```
$ go run cmd/wifiqr/main.go > example.png
```This produces:

Alternatively, if stdout is a terminal (and not redirected) you can display the
QR code directly.```
$ go run ./cmd/wifiqr/main.go
SSID: "Example", password: "thisisanexample"█████████████████████████████████████
█████████████████████████████████████
████ ▄▄▄▄▄ ██ ▀ ▀▀▄ ▄▀▄█ █ ▄▄▄▄▄ ████
████ █ █ █ ▄▀ █ ▄▀▄▄ ▄▄█ █ █ ████
████ █▄▄▄█ █ █ ▀█▀▄▄▄▀▄ ▀█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ ▀▄█▄▀ █ ▀ ▀▄█▄▄▄▄▄▄▄████
████ ▀▄ ▄ ▄█▀▄█ ▄▄▀ ██▄███▄ ▄█▀████
████ ▄▄▄█▄▄▄▀▀ ▀▀██▄ ▄██ █▀▀ ▀▄█ ████
████ █▀ █▀▄▄▄ ▄ ▄▀█ ▄▄▀▄ ▄██ ████
████▀███▀▀▄▀▄▀▀▄▄ ▄█▀ ▀ ▄▀▀▄▀▀ ██████
████▀▀ ▀▄▀▄█▀ ████▄ ▄█▄█ ▄█▄▀▀▄▀▀████
████ █ ██▀▄▄▄▀ ▄▀█▀▄▀▄█▀▀▀▀ ▀█▄▀████
████▄██▄▄█▄█▀▄█ ▀▀▀ █▄▄█ ▄▄▄ ▀ ▄▄████
████ ▄▄▄▄▄ █▀█▄▀▄ ▄█ ▄▀▀ █▄█ ▄██████
████ █ █ █ ▄▀██▄ █▄▄ ▄ ▄██▀█████
████ █▄▄▄█ █▄▄█▄▀▀ ▄▀ ▀▄███▀█ ▀ ▀████
████▄▄▄▄▄▄▄█▄▄▄▄▄██▄█▄████▄█▄█▄▄█████
█████████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
```