MCPcopy Index your code
hub / github.com/Effect-TS/effect / pack

Function pack

packages/platform/src/Ndjson.ts:106–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 * @category constructors
105 */
106export const pack = <IE = never, Done = unknown>(): Channel.Channel<
107 Chunk.Chunk<Uint8Array>,
108 Chunk.Chunk<unknown>,
109 IE | NdjsonError,
110 IE,
111 Done,
112 Done
113> => Channel.mapOut(packString(), Chunk.map((_) => encoder.encode(_)))
114
115/**
116 * @since 1.0.0

Callers 2

packSchemaFunction · 0.70
Ndjson.tsFile · 0.70

Calls 3

packStringFunction · 0.85
encodeMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected