Skip to content

Instantly share code, notes, and snippets.

@nitobuendia
Created August 13, 2020 13:38
Show Gist options
  • Select an option

  • Save nitobuendia/8d2009f22c3edaff034329271cc5bcdb to your computer and use it in GitHub Desktop.

Select an option

Save nitobuendia/8d2009f22c3edaff034329271cc5bcdb to your computer and use it in GitHub Desktop.
Generate Wifi QR Code
// Can be run without npm installation on https://npm.runkit.com/qrcode
const qrcode = require('qrcode');
qrcode.toDataURL('WIFI:S:<SSID>;T:<WPA|WEP|>;P:<password>;;', {width: 500}, (err, url) => {
console.table(url);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment