UNPKG

@azure/search-documents

Version:

Azure client library to use Cognitive Search for node.js and browser.

17 lines 470 B
// 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 Buffer.from(value).toString("base64"); } /** * Decodes a base64 string into a regular string. * @param value - The base64 string to decode. */ export function decode(value) { return Buffer.from(value, "base64").toString(); } //# sourceMappingURL=base64.js.map