PHP 8.1.33
Preview: base64.js Size: 322 B
//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: 9

Name Size Perms Modified Actions
73 B lrw-r--r-- 2021-03-10 14:36:40
Edit Download
322 B lrw-r--r-- 2021-03-10 14:36:40
Edit Download
2.84 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download
3.23 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download
1.06 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download
1.91 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download
1.94 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download
229 B lrw-r--r-- 2021-03-10 14:36:40
Edit Download
50.25 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download

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