Skip to content

catcatio/qr-service

Repository files navigation

qr-service

qr code generator service

example

Run

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"
}

Performance tuning

  • Use node-lru-cache to store processed qrcode, its option set to 500 max item for 7 days

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published