MCPcopy Create free account
hub / github.com/denoland/std / parseAll

Function parseAll

yaml/unstable_parse.ts:108–118  ·  view source on GitHub ↗
(
  content: string,
  options: ParseOptions = {},
)

Source from the content-addressed store, hash-verified

106 * @returns Array of parsed documents.
107 */
108export function parseAll(
109 content: string,
110 options: ParseOptions = {},
111): unknown[] {
112 content = sanitizeInput(content);
113 const state = new LoaderState(content, {
114 ...options,
115 schema: getSchema(options.schema, options.extraTypes),
116 });
117 return [...state.readDocuments()];
118}

Callers

nothing calls this directly

Calls 3

readDocumentsMethod · 0.95
getSchemaFunction · 0.90
sanitizeInputFunction · 0.70

Tested by

no test coverage detected