MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / btoa

Function btoa

packages/core/wgc/btoa.ts:1–9  ·  view source on GitHub ↗
(stringToEncode: string)

Source from the content-addressed store, hash-verified

1export function btoa(stringToEncode: string) {
2 if (__ANDROID__) {
3 return (<any>org).nativescript.winter_tc.Utils.btoa(stringToEncode);
4 }
5
6 if (__IOS__) {
7 return (<any>NSString).btoa(stringToEncode);
8 }
9}

Callers 1

encodeDecodeFunction · 0.85

Calls 1

btoaMethod · 0.80

Tested by

no test coverage detected