{"version":3,"file":"uint8-array-to-string.node.mjs","names":[],"sources":["../src/uint8-array-to-string.node.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n                       🗲 Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website:                  https://stormsoftware.com\n Repository:               https://github.com/storm-software/stryke\n Documentation:            https://docs.stormsoftware.com/projects/stryke\n Contact:                  https://stormsoftware.com/contact\n\n SPDX-License-Identifier:  Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Buffer } from \"node:buffer\";\n\n/**\n * Convert a Uint8Array array to string\n *\n * @see https://stackoverflow.com/a/41798356/1465919\n * @see https://stackoverflow.com/a/36949791/1465919\n *\n * @param arr - Uint8Array to convert\n * @returns The converted string\n */\nexport const uint8ArrayToString = (arr: Uint8Array): string =>\n  decodeURIComponent(Buffer.from(arr).toString(\"utf8\"));\n"],"mappings":";;;;;;;;;;;;AA6BA,MAAa,sBAAsB,QACjC,mBAAmB,OAAO,KAAK,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC"}