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

Function parseAll

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

Source from the content-addressed store, hash-verified

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

Callers 1

fnFunction · 0.90

Calls 3

readDocumentsMethod · 0.95
sanitizeInputFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected