mirror of
https://github.com/anatolykopyl/status.git
synced 2026-03-26 21:04:48 +00:00
Initial commit
This commit is contained in:
12
node_modules/registry-auth-token/base64.js
generated
vendored
Normal file
12
node_modules/registry-auth-token/base64.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
function decodeBase64 (base64) {
|
||||
return Buffer.from(base64, 'base64').toString('utf8')
|
||||
}
|
||||
|
||||
function encodeBase64 (string) {
|
||||
return Buffer.from(string, 'utf8').toString('base64')
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
decodeBase64: decodeBase64,
|
||||
encodeBase64: encodeBase64
|
||||
}
|
||||
Reference in New Issue
Block a user