svitejs / vite-plugin-qrcode

Show QR code on server start
MIT License
147 stars 3 forks source link

size #84

Closed geekact closed 1 year ago

geekact commented 1 year ago

Describe the problem

Actually, the qrcode size is too large in terminal.

Describe the proposed solution

Consider to provide an option

qrcode({
  size: 50
});

Alternatives considered

:)

Importance

nice to have

geekact commented 1 year ago

Alternative, rename PluginOptions to QrcodeOptions would be better.

bluwy commented 1 year ago

We're already printing it small by default:

https://github.com/svitejs/vite-plugin-qrcode/blob/f979084ac32dbccb04e09482df16fa210fb03080/packages/vite-plugin-qrcode/src/index.ts#L42

Going any smaller it might not be scannable as the terminal doesn't have the glyphs to print in high resolution.

bluwy commented 1 year ago

Closing as it's not possible at the moment.