MCPcopy Create free account
hub / github.com/Kong/insomnia / utf8StringFromBytes

Function utf8StringFromBytes

packages/insomnia/src/common/utils/utf8-bytes.ts:11–13  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

9}
10
11export function utf8StringFromBytes(bytes: Uint8Array): string {
12 return new TextDecoder().decode(bytes);
13}
14
15export function latin1BytesFromString(value: string): Uint8Array {
16 const bytes = new Uint8Array(value.length);

Callers 7

MessageEventViewFunction · 0.90
ResponseViewerFunction · 0.90
ResponseCSVViewerFunction · 0.90
ResponseMultipartViewerFunction · 0.90
runFunction · 0.90
base64ToUtf8Function · 0.85
bodyBufferToUtf8Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected