PHP 8.2.30
Preview: url-safe.js Size: 473 B
/home/byroehnu/easepay.easetack.com/node_modules/linebreak/node_modules/base64-js/test/url-safe.js

var test = require('tape'),
  b64 = require('../lib/b64');

test('decode url-safe style base64 strings', function (t) {
  var expected = [0xff, 0xff, 0xbe, 0xff, 0xef, 0xbf, 0xfb, 0xef, 0xff];

  var actual = b64.toByteArray('//++/++/++//');
  for (var i = 0; i < actual.length; i++) {
    t.equal(actual[i], expected[i])
  }

  actual = b64.toByteArray('__--_--_--__');
  for (var i = 0; i < actual.length; i++) {
    t.equal(actual[i], expected[i])
  }
  
  t.end();
});

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:21
Edit Download
1.02 KB lrw-r--r-- 2026-02-14 19:19:12
Edit Download
473 B lrw-r--r-- 2026-02-14 19:19:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).