mirror of
https://github.com/github/codeql.git
synced 2026-01-01 00:27:24 +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');
|
|
}
|