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

Function parseAll

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

readDocumentsMethod · 0.95
getSchemaFunction · 0.90
sanitizeInputFunction · 0.70

Tested by

no test coverage detected