16 lines
290 B
TypeScript
16 lines
290 B
TypeScript
|
import {Converter} from './converter';
|
||
|
|
||
|
export class Base64Decoder implements Converter {
|
||
|
getDisplayname():string {
|
||
|
return "Decode Base 64";
|
||
|
}
|
||
|
|
||
|
getId():string {
|
||
|
return "base64decode";
|
||
|
}
|
||
|
|
||
|
convert(input:string):string {
|
||
|
return atob(input);
|
||
|
}
|
||
|
}
|