MCPcopy Create free account
hub / github.com/WICG/webpackage / byteString

Function byteString

js/bundle/src/encoder.ts:280–282  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

278}
279
280function byteString(s: string): Uint8Array {
281 return new TextEncoder().encode(s);
282}
283
284// Type guard for checking that the headers are in valid format: an object of
285// strings.

Callers 3

addExchangeMethod · 0.85
createTopLevelMethod · 0.85
toCBORMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected