qrcode-terminal is a tiny npm module that allows you to encode text as a QR code and render it to a UNIX-compatible terminal.
// render QR code to the console
qrcode.generate('http://michaelbrooks.ca');
// return QR code as a string
qrcode.generate('http://michaelbrooks.ca', function (qrcode) {
console.log(qrcode);
});