Exemplo de como gerar um pix code e qrcode.
git clone https://github.com/gustavonovaes/pix-qrcode
cd pix-qrcode
npm install --production
node index.js
Output:
> node index.js
PIXCode
[email protected] Vida, o Universo e Tudo Mais520400005303986540542.005802BR5914GUSTAVO NOVAES6006RECIFE62070503***63040849
█▀▀▀▀▀█ ▀▄ ▀ █▀▀▀▀▀█
█ ███ █ ▄ ▄▄█ █ ███ █
█ ▀▀▀ █ █▄█▄▀ █ ▀▀▀ █
▀▀▀▀▀▀▀ █▄█▄█ ▀▀▀▀▀▀▀
█ ▄▀ ▀█▀▀ █▄▀▀▀▀▀▄ █
▄▄█▀█▄▀▀█▀▄▀ ▄██▀▀▀█
▀ ▀ ▀▀█ ▀ ███▄█ █▀█
█▀▀▀▀▀█ ▀▀▄▄█▀ ▀█ ▀█▄
█ ███ █ ▀ ██▄ ▀▀▄▄ ▄█
█ ▀▀▀ █ ██▀ ▄█▄█ ▀
▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀
base64:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMQAAADECAYAAADApo5rAAAAAklEQVR4AewaftIAAAjxSURBVO3BQY4kSXIAQdVA/f/LysYeHMYDHQhkVu8MYSL2B2ut/3hYax0Pa63jYa11PKy1joe11vGw1joe1lrHw1rreFhrHQ9rreNhrXU8rLWOh7XW8bDWOh7WWscPH1L5myomlZuKG5WpYlL5RMWkclPxCZWp4g2VT1RMKn9TxSce1lrHw1rreFhrHT98WcU3qdxUTCo3KlPFpHJTMalMFZPKVPGbKiaVqWJS+Zsqvknlmx7WWsfDWut4WGsdP/wylTcqPlFxU/FGxaTyRsWkMlXcqLxRMVX8popPqLxR8Zse1lrHw1rreFhrHT/8P6PyRsVUcVMxqUwqNxWTyhsV31QxqdxUTCpTxb/Zw1rreFhrHQ9rreOH/2cqblTeULmpmFSmipuKG5VJZaqYVKaKSWX93x7WWsfDWut4WGsdP/yyiv8mlRuVm4oblRuVqWJSeaPiExWTyk3FTcUn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