MCPcopy Create free account
hub / github.com/Effect-TS/effect / decodeString

Function decodeString

packages/effect/src/encoding/Hex.ts:268–268  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

266 * @since 4.0.0
267 */
268export const decodeString = (str: string) => Result.map(decode(str), (_) => decoder.decode(_))
269
270const encoder = new TextEncoder()
271const decoder = new TextDecoder("utf-8", { ignoreBOM: true })

Callers 1

Csv.tsFile · 0.70

Calls 3

decodeFunction · 0.70
mapMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected