Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get-alphabet-option.js 297B

12345678
  1. 'use strict';
  2. var $TypeError = TypeError;
  3. module.exports = function (options) {
  4. var alphabet = options && options.alphabet;
  5. if (alphabet === undefined || alphabet === 'base64' || alphabet === 'base64url') return alphabet || 'base64';
  6. throw new $TypeError('Incorrect `alphabet` option');
  7. };