UNPKG

@frak-labs/core-sdk

Version:

Core SDK of the Frak wallet, low level library to interact directly with the frak ecosystem.

12 lines (10 loc) 275 B
import { jsonDecode } from "@frak-labs/frame-connector"; import { base64urlDecode } from "./b64"; /** * Decompress json data * @param data * @ignore */ export function decompressJsonFromB64<T>(data: string): T | null { return jsonDecode<T>(base64urlDecode(data)); }