Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/peponi/text-to-unicode-qr

convert text (BTC address) to QR codes made of unicode (text)
https://github.com/peponi/text-to-unicode-qr

api bitcoin-address cli command-line command-line-tool ethereum-address mail qr qr-code qrcode screenshot service unicode

Last synced: 11 days ago
JSON representation

convert text (BTC address) to QR codes made of unicode (text)

Awesome Lists containing this project

README

        

*I was tryng to [send emails with text based qr codes](./assets/screenshot-html.png) 'cause my friends only receive plain text mails, so I generated this small API to generate unicode based QRs*

demo on https://text-to-unicode-qr.herokuapp.com/

this ```curl -GET https://text-to-unicode-qr.herokuapp.com/inverted/sadfsdfdfdsfghjre65zrtezht54e``` will work

## Usage Express WebServer

```
npm run start
```

#### request qr code via API

![screenshot of chrome brower which returned a unicode QR code for request on default api path](./assets/screenshot-browser.png)

#### request inverted qr code via API

![screenshot of chrome brower which returned a inverted unicode QR code for request on /inverted api path](./assets/screenshot-browser-inverted.png)

|API|description|
|---|---|
|/|will return the index.html with input form to convert strings|
|/VALUE|will return the converted VALUE as qr|
|/inverted/VALUE|will return the inverted VALUE as qr|

## Usage CLI

#### request inverted qr code on command line

![screenshot of terminal which returned a inverted unicode QR code](./assets/screenshot-cli.png)

|argument|description|
|---|---|
|--convertThis|text to be converted|
|--inverted|will invert the qr code|
|--file|will save the qr code in a qr.txt file|
|--file=|will save the qr code in a file named with .txt|

will the converted unicode qr in terminal

```
node ./cli.js --convertThis=sadfsdfdfdsfghjre65zrtezht54e
```

will save a unicode qr in ```./qr.txt```

```
node ./cli.js --convertThis=sadfsdfdfdsfghjre65zrtezht54e --file
```

will save a inverted unicode qr in ```./wurstbrot.txt```

```
node ./cli.js --convertThis=sadfsdfdfdsfghjre65zrtezht54e --inverted --file=wurstbrot
```

## Todo

* maybe https://research.swtch.com/qart