UNPKG

@lucasschirm/amb-client-react

Version:

Allow to watch records using AMB Websockets from a react application.

9 lines (8 loc) 225 B
/** * Convert a string to a base64 encoded string, replacing '=' with '-'. * @param {string} str query string to encode * @returns {string} */ export function encodeQuery(str) { return btoa(str).replace(/=/g, '-'); }