MCPcopy Create free account
hub / github.com/api3dao/airnode / encodeUtf8

Function encodeUtf8

packages/airnode-node/src/workers/cloud-platforms/aws.ts:9–11  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

7import { WorkerParameters, WorkerResponse } from '../../types';
8
9export function encodeUtf8(input: string) {
10 return new TextEncoder().encode(input) as Uint8ArrayBlobAdapter;
11}
12
13export function decodeUtf8(input: Uint8Array): string {
14 return new TextDecoder('utf-8').decode(input);

Callers 3

worker.test.tsFile · 0.90
workers.test.tsFile · 0.90
spawnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected