Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
1
export
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
encodeDecode
Function · 0.85
Calls
1
btoa
Method · 0.80
Tested by
no test coverage detected