mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
committed by
Kyle Spearrin
parent
e0ff13e193
commit
47b5b9f950
@@ -11,7 +11,7 @@ export class EncodeCommand {
|
||||
return Response.badRequest('No stdin was piped in.');
|
||||
}
|
||||
const input = await CliUtils.readStdin();
|
||||
const b64 = new Buffer(input, 'utf8').toString('base64');
|
||||
const b64 = Buffer.from(input, 'utf8').toString('base64');
|
||||
const res = new StringResponse(b64);
|
||||
return Response.success(res);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user