👋 I’m Nathan

Generate a QR Code in your shell with npx, qrcode-svg, and svgo

🔗 a link post linking to mastodon.social

A very interesting shell script snippet from Vadim to quickly generate a QR Code in your shell. A slightly modified of their original script is:

function qr() {
  npx qrcode-svg --join --no-prettify --viewbox --padding 0 --ecl L --force --output $1.svg $2
  npx svgo --quiet --precision 0 $1.svg
  open $1.svg