I created this repo to generate a nice qr code via API. It generates and stores the QR code making it accessible via static url.
There are way more options that you can add, but this was what I currently needed.
๐๐ป More options qr-code-styling-node
- TypeScript under
./src
- JavaScript under
./build
npm install
nodemon watches file changes and reloads the server automatically.
npx nodemon src/server.ts
or
nodemon src/server.ts
- Style your QR code here
- Export Options as JSON
- Add options to
qr.vars.ts
undersrc/controllers/
export const myStyle = {
width: 320,
height: 320,
...
}
- Generate QR code: http://localhost:1996/qr/create/1234567890.png
- Retrieve png file: http://localhost:1996/qr/show/1234567890.png