package.internals.get-alphabet-option.js Maven / Gradle / Ivy
The newest version!
'use strict';
var $TypeError = TypeError;
module.exports = function (options) {
var alphabet = options && options.alphabet;
if (alphabet === undefined || alphabet === 'base64' || alphabet === 'base64url') return alphabet || 'base64';
throw new $TypeError('Incorrect `alphabet` option');
};
© 2015 - 2024 Weber Informatics LLC | Privacy Policy