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

Function parse

packages/effect/src/encoding/Yaml.ts:1537–1538  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

1535 * @since 4.0.0
1536 */
1537export const parse = (input: string): Result.Result<unknown, EncodingError> =>
1538 decode(input, (parser) => parser.parseStream(1)[0] ?? null)
1539
1540/**
1541 * Parses a YAML stream into one JavaScript value per document.

Callers

nothing calls this directly

Calls 2

parseStreamMethod · 0.80
decodeFunction · 0.70

Tested by

no test coverage detected