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

Function parseAll

yaml/parse.ts:117–127  ·  view source on GitHub ↗
(
  content: string,
  options: ParseOptions = {},
)

Source from the content-addressed store, hash-verified

115 * @returns Array of parsed documents.
116 */
117export function parseAll(
118 content: string,
119 options: ParseOptions = {},
120): unknown[] {
121 content = sanitizeInput(content);
122 const state = new LoaderState(content, {
123 ...options,
124 schema: SCHEMA_MAP.get(options.schema!)!,
125 });
126 return [...state.readDocuments()];
127}

Callers 1

fnFunction · 0.90

Calls 3

readDocumentsMethod · 0.95
sanitizeInputFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected