summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mdp/qrterminal/README.md
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-01-31 00:27:37 +0100
committerWim <wim@42.be>2022-03-20 14:57:48 +0100
commite3cafeaf9292f67459ff1d186f68283bfaedf2ae (patch)
treeb69c39620aa91dba695b3b935c6651c0fb37ce75 /vendor/github.com/mdp/qrterminal/README.md
parente7b193788a56ee7cdb02a87a9db0ad6724ef66d5 (diff)
downloadmatterbridge-msglm-e3cafeaf9292f67459ff1d186f68283bfaedf2ae.tar.gz
matterbridge-msglm-e3cafeaf9292f67459ff1d186f68283bfaedf2ae.tar.bz2
matterbridge-msglm-e3cafeaf9292f67459ff1d186f68283bfaedf2ae.zip
Add dependencies/vendor (whatsapp)
Diffstat (limited to 'vendor/github.com/mdp/qrterminal/README.md')
-rw-r--r--vendor/github.com/mdp/qrterminal/README.md78
1 files changed, 78 insertions, 0 deletions
diff --git a/vendor/github.com/mdp/qrterminal/README.md b/vendor/github.com/mdp/qrterminal/README.md
new file mode 100644
index 00000000..e8beb315
--- /dev/null
+++ b/vendor/github.com/mdp/qrterminal/README.md
@@ -0,0 +1,78 @@
+# QRCode Terminal
+
+[![Build Status](https://secure.travis-ci.org/mdp/qrterminal.png)](https://travis-ci.org/mdp/qrterminal)
+
+A golang library for generating QR codes in the terminal.
+
+Originally this was a port of the [NodeJS version](https://github.com/gtanner/qrcode-terminal). Recently it's been updated to allow for smaller code generation using ASCII 'half blocks'
+
+## Example
+Full size ASCII block QR Code:
+<img src="https://user-images.githubusercontent.com/2868/37992336-0ba06b56-31d1-11e8-9d32-5c6bb008dc74.png" alt="alt text" width="225" height="225">
+
+Smaller 'half blocks' in the terminal:
+<img src="https://user-images.githubusercontent.com/2868/37992371-243d4238-31d1-11e8-92f8-e34a794b21af.png" alt="alt text" width="225" height="225">
+
+## Install
+
+`go get github.com/mdp/qrterminal`
+
+## Usage
+
+```go
+import (
+ "github.com/mdp/qrterminal"
+ "os"
+ )
+
+func main() {
+ // Generate a 'dense' qrcode with the 'Low' level error correction and write it to Stdout
+ qrterminal.Generate("https://github.com/mdp/qrterminal", qrterminal.L, os.Stdout)
+}
+```
+
+### More complicated
+
+Large Inverted barcode with medium redundancy and a 1 pixel border
+```go
+import (
+ "github.com/mdp/qrterminal"
+ "os"
+ )
+
+func main() {
+ config := qrterminal.Config{
+ Level: qrterminal.M,
+ Writer: os.Stdout,
+ BlackChar: qrterminal.WHITE,
+ WhiteChar: qrterminal.BLACK,
+ QuietZone: 1,
+ }
+ qrterminal.GenerateWithConfig("https://github.com/mdp/qrterminal", config)
+}
+```
+
+HalfBlock barcode with medium redundancy
+```go
+import (
+ "github.com/mdp/qrterminal"
+ "os"
+ )
+
+func main() {
+ config := qrterminal.Config{
+ HalfBlocks: true,
+ Level: qrterminal.M,
+ Writer: os.Stdout,
+ }
+ qrterminal.Generate("https://github.com/mdp/qrterminal", config)
+}
+```
+
+Credits:
+
+Mark Percival m@mdp.im
+[Matthew Kennerly](https://github.com/mtkennerly)
+[Viric](https://github.com/viric)
+[WindomZ](https://github.com/WindomZ)
+[mattn](https://github.com/mattn)