qr code generator service
npm i
npm run dev
GET http://localhost:3000/qr?text=https://github.com/catcatio/qrservice&logoUrl=https://pbs.twimg.com/profile_images/972154872261853184/RnOg6UyU_400x400.jpg&logoText=@google&maskTextLine1=GOOGLE&maskTextLine2=inc
curl http://localhost:3000/qr?\
text=https://github.com/catcatio/qrservice&\
logoUrl=https://pbs.twimg.com/profile_images/972154872261853184/RnOg6UyU_400x400.jpg&\
logoText=@google&\
maskTextLine1=GOOGLE&\
maskTextLine2=inc
POST http://localhost:3000/qr
{
"text": "https://www.google.com/search?ei=jf5rW6Nfl5H1A__rhMAN&q=google&oq=google",
"logoUrl": "https://pbs.twimg.com/profile_images/972154872261853184/RnOg6UyU_400x400.jpg",
"logoText": "@google",
"maskTextLine1": "GOOGLE",
"maskTextLine2": "inc"
}
- Use
node-lru-cache
to store processed qrcode, its option set to 500 max item for 7 days