@azure/search-documents
Version:
Azure client library to use Cognitive Search for node.js and browser.
17 lines • 424 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* Encodes a string in base64 format.
* @param value - The string to encode.
*/
export function encode(value) {
return btoa(value);
}
/**
* Decodes a base64 string into a regular string.
* @param value - The base64 string to decode.
*/
export function decode(value) {
return atob(value);
}
//# sourceMappingURL=base64.browser.js.map