15 lines
290 B
TypeScript
15 lines
290 B
TypeScript
import {Converter} from './converter';
|
|
|
|
export class Base64Encoder implements Converter {
|
|
getDisplayname():string {
|
|
return "Encode Base 64";
|
|
}
|
|
|
|
getId():string {
|
|
return "base64encode";
|
|
}
|
|
|
|
convert(input:string):string {
|
|
return btoa(input);
|
|
}
|
|
}
|