lib/generate.js
function qrcode(key, name, options) {
  // Options
  options = _.extend({
    type: 'svg',
    sync: false
  }, options || {});

  var link = otpauth(key, name);

  if (options.sync) {
    return qr.imageSync(link, {
      type: options.type,
      margin: 0
    });
  } else {
    return qr.image(link, {
      type: options.type,
      margin: 0
    });
  }
}
function qrcode(key, name, options) {
  // Options
  options = _.extend({
    type: 'svg',
    sync: false
  }, options || {});

  var link = otpauth(key, name);

  if (options.sync) {
    return qr.imageSync(link, {
      type: options.type,
      margin: 0
    });
  } else {
    return qr.image(link, {
      type: options.type,
      margin: 0
    });
  }
}
function qrcode ( key , name , options ) { // Options options = _ . extend ( { type : 'svg' , sync : false } , options || { } ) ; var link = otpauth ( key , name ) ; if ( options . sync ) { return qr . imageSync ( link , { type : options . type , margin : 0 } ) ; } else { return qr . image ( link , { type : options . type , margin : 0 } ) ; } }
Creates a QR Code

@param     {String}    key
@param     {Name}    name
@param     {Object}    options
@return    {Stream}
Creates a QR Code