mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-07 19:25:13 +02:00
9 lines
297 B
JavaScript
9 lines
297 B
JavaScript
'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');
|
|
};
|