gtanner / qrcode-terminal

QRCodes in your terminal, cause thats hot.
Apache License 2.0
1.28k stars 100 forks source link

add feature to pipe stdin #18

Closed defunctzombie closed 6 years ago

defunctzombie commented 8 years ago

Makes it super easy to pipe something and get a qr code:

echo 'foobar' | qrcode-terminal

This is useful if you have a command that outputs something you want to scan with a mobile phone.

defunctzombie commented 8 years ago

For now I have a simple script that just uses this lib (https://github.com/defunctzombie/qr) but given that you already have a CLI tool I figured it would be nice for it to support this :)

JustGreg commented 8 years ago

you can also use this command (its not a pipe, just a workaround):

qrcode-terminal "$(echo 'foobar')" or qrcode-terminal "$(cat file.txt)"

adius commented 6 years ago

Yes, please!

defunctzombie commented 6 years ago

Fair.

mwbrooks commented 6 years ago

19 added this functionality. It's published on npm as qrcode-terminal@0.12.0

https://www.npmjs.com/package/qrcode-terminal