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.

esnext.uint8-array.from-base64.js 694B

12345678910111213141516
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var globalThis = require('../internals/global-this');
  4. var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');
  5. var $fromBase64 = require('../internals/uint8-from-base64');
  6. var Uint8Array = globalThis.Uint8Array;
  7. // `Uint8Array.fromBase64` method
  8. // https://github.com/tc39/proposal-arraybuffer-base64
  9. if (Uint8Array) $({ target: 'Uint8Array', stat: true }, {
  10. fromBase64: function fromBase64(string /* , options */) {
  11. var result = $fromBase64(string, arguments.length > 1 ? arguments[1] : undefined, null, 0x1FFFFFFFFFFFFF);
  12. return arrayFromConstructorAndList(Uint8Array, result.bytes);
  13. }
  14. });