qrgen

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 8 Imported by: 0

README

qrgen

qrgen lets you generate a QR code in the terminal, from stdin.

Why?

I use a file-sharing service (share.schollz.com) I wrote called share. It lets you share files directly from the command-line. I wanted a way to generate a QR in the terminal so that I can just take a picture with my phone to go to the resulting link.

Now I can share directly from my terminal to my phone easily.

Usage

First install with

> go get github.com/schollz/qrgen

Then, I have an alias in my ~/.zshrc for sharing files to https://share.schollz.com:

alias share='f() { curl --progress-bar --upload-file "$1" https://share.schollz.com | qrgen };f'

Example

Website

The html code in this repo is for a super simple QR code reader webpage. You can host it yourself or use the one I'm hosting at https://schollz.com/qr/.

Acknowledgements

Code here was forked from github.com/mdp/qrterminal, and adopted for stdin (under MIT, Copyright 2019 Mark Percival m@mdp.im).

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL