mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
10 lines
218 B
JavaScript
10 lines
218 B
JavaScript
function roundtrip(data) {
|
|
var encoded = Buffer.from(data, 'base64');
|
|
return encoded.toString('base64');
|
|
}
|
|
|
|
function roundtrip2(data) {
|
|
var encoded = Buffer.from(data, 'hex');
|
|
return encoded.toString('hex');
|
|
}
|