PHP 8.2.30
Preview: base64.js Size: 322 B
/opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/node_modules/registry-auth-token/base64.js

const safeBuffer = require('safe-buffer').Buffer

function decodeBase64 (base64) {
  return safeBuffer.from(base64, 'base64').toString('utf8')
}

function encodeBase64 (string) {
  return safeBuffer.from(string, 'utf8').toString('base64')
}

module.exports = {
  decodeBase64: decodeBase64,
  encodeBase64: encodeBase64
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
322 B lrw-r--r-- 2021-10-19 09:48:00
Edit Download
2.73 KB lrw-r--r-- 2021-10-19 09:48:00
Edit Download
3.13 KB lrw-r--r-- 2021-10-19 09:48:00
Edit Download
1.06 KB lrw-r--r-- 2021-10-19 09:48:00
Edit Download
1.89 KB lrw-r--r-- 2021-10-19 09:48:00
Edit Download
1.94 KB lrw-r--r-- 2021-10-19 09:48:00
Edit Download
229 B lrw-r--r-- 2021-10-19 09:48:00
Edit Download
50.11 KB lrw-r--r-- 2021-10-19 09:48:00
Edit Download

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